- add ip to log

- remove unused timestamp from log
This commit is contained in:
Zoltán Papp
2024-07-18 13:11:27 +02:00
parent 233a7b9802
commit f3282bea80
2 changed files with 2 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ func (l *Listener) Close() error {
func (l *Listener) onAccept(w http.ResponseWriter, r *http.Request) {
wsConn, err := websocket.Accept(w, r, nil)
if err != nil {
log.Errorf("failed to accept ws connection: %s", err)
log.Errorf("failed to accept ws connection from %s: %s", r.RemoteAddr, err)
return
}