diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-07-17 22:09:28 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-07-17 22:09:28 (GMT) |
commit | 8bd00db15d320fb8e3ee1ca04d0e2a65ddb89c44 (patch) | |
tree | 6a3b68b5018f1b622096cc8e299a9792a2b9e7e2 /src/helsinki.at/rhrdtime | |
parent | 7c3acf4baafa5e86e8ad8e6bc7cc5beeedf4abbc (diff) |
improved log output
Diffstat (limited to 'src/helsinki.at/rhrdtime')
-rw-r--r-- | src/helsinki.at/rhrdtime/rhrdtime.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helsinki.at/rhrdtime/rhrdtime.go b/src/helsinki.at/rhrdtime/rhrdtime.go index bae588a..58ba896 100644 --- a/src/helsinki.at/rhrdtime/rhrdtime.go +++ b/src/helsinki.at/rhrdtime/rhrdtime.go @@ -91,11 +91,12 @@ func handleTimeUpdateClient(w http.ResponseWriter, r *http.Request, ps *pubsub.P fmt.Println(err) return } - fmt.Println("Client connected", ws.RemoteAddr()) + fmt.Println("Client", ws.RemoteAddr(), "connected") go func() { for { if _, _, err := ws.NextReader(); err != nil { + fmt.Println("Client", ws.RemoteAddr(), "disconnected:", err) ws.Close() break } |