summaryrefslogtreecommitdiff
path: root/src/helsinki.at
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-07-18 02:46:45 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-07-18 02:46:45 (GMT)
commit127aca402324c150445be92125feeb6f9f4cb25e (patch)
treec79b1945d5d5a90e40e8457496291da51356c436 /src/helsinki.at
parent36001d4db9d7cbeff8cfdecc51e42a1f1083394c (diff)
some cleanup
Diffstat (limited to 'src/helsinki.at')
-rw-r--r--src/helsinki.at/rhrdtime/rhrdtime.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helsinki.at/rhrdtime/rhrdtime.go b/src/helsinki.at/rhrdtime/rhrdtime.go
index e426c42..3501942 100644
--- a/src/helsinki.at/rhrdtime/rhrdtime.go
+++ b/src/helsinki.at/rhrdtime/rhrdtime.go
@@ -85,12 +85,12 @@ func handleNTPClient(w http.ResponseWriter, r *http.Request) {
fmt.Println(err)
return
}
- fmt.Println("Client connected", ws.RemoteAddr())
+ fmt.Println("Client", ws.RemoteAddr(), "connected")
for {
msgtype, msg, err := ws.ReadMessage()
if err != nil {
- fmt.Println("Client connected", ws.RemoteAddr())
+ fmt.Println("Client", ws.RemoteAddr(), "disconnected:", err)
return
}
now_t2 := time.Now()
@@ -98,7 +98,7 @@ func handleNTPClient(w http.ResponseWriter, r *http.Request) {
var n ntpMessage
if err := json.Unmarshal(msg, &n); err != nil {
- fmt.Println("mallformed NTP message", err)
+ fmt.Println("ignoring mallformed (", err, ") NTP message from:", ws.RemoteAddr())
continue
}