reid 2 жил өмнө
parent
commit
fa1a11d8c2
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      ws/ws.go

+ 1 - 0
ws/ws.go

@@ -83,6 +83,7 @@ func WsHandler(w http.ResponseWriter, r *http.Request) {
 		// if it fails to marshal, assume that means no token
 		// "verify" action is implicit
 		if err := json.Unmarshal(msg, &payload); err != nil {
+			config.Logger.Info("New client")
 			// auth.CreateToken also adds to unauth map
 			newToken, err := auth.CreateToken(conn, r, false)
 			if err != nil {