MCPcopy Index your code
hub / github.com/koding/kite / handleLog

Method handleLog

handlers.go:107–116  ·  view source on GitHub ↗

handleLog prints a log message to stderr.

(r *Request)

Source from the content-addressed store, hash-verified

105
106// handleLog prints a log message to stderr.
107func (k *Kite) handleLog(r *Request) (interface{}, error) {
108 msg, err := r.Args.One().String()
109 if err != nil {
110 return nil, err
111 }
112
113 k.Log.Info("%s: %s", r.Client.Name, msg)
114
115 return nil, nil
116}
117
118//handlePing returns a simple "pong" string
119func handlePing(r *Request) (interface{}, error) {

Callers

nothing calls this directly

Calls 3

OneMethod · 0.80
InfoMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected