From 54d5eb8d034b3d88d30a857cd5e460d24c306516 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 8 Apr 2024 18:21:17 -0600 Subject: [PATCH] Improve logging --- cmd/client/main.go | 2 ++ server.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/client/main.go b/cmd/client/main.go index 4b8255e..245ece9 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -158,6 +158,8 @@ func main() { panic(err) } + fmt.Printf("Started pnyx client\n") + go func() { var buf [1024]byte for true { diff --git a/server.go b/server.go index ba25d6a..aca336a 100644 --- a/server.go +++ b/server.go @@ -281,7 +281,7 @@ func(server *Server) listen_udp() { server.Log("Error sending server hello: %s", err) continue } - server.Log("Sent server_hello for %s", session.ID) + server.Log("Sent server_hello for %s to %s", session.ID, session.remote) case SESSION_CLOSE: session_id := SessionID(buf[COMMAND_LENGTH:COMMAND_LENGTH+ID_LENGTH])