summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-07-17 22:09:28 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-07-17 22:09:28 (GMT)
commit8bd00db15d320fb8e3ee1ca04d0e2a65ddb89c44 (patch)
tree6a3b68b5018f1b622096cc8e299a9792a2b9e7e2 /src
parent7c3acf4baafa5e86e8ad8e6bc7cc5beeedf4abbc (diff)
improved log output
Diffstat (limited to 'src')
-rw-r--r--src/helsinki.at/rhrdtime/rhrdtime.go3
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
}