Improve logging

live
noah metz 2024-04-08 18:21:17 -06:00
parent 65c82ef3f4
commit 54d5eb8d03
2 changed files with 3 additions and 1 deletions

@ -158,6 +158,8 @@ func main() {
panic(err)
}
fmt.Printf("Started pnyx client\n")
go func() {
var buf [1024]byte
for true {

@ -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])