From ed2621c17f353878ea86ce2c16cac7cd04fb4c6a Mon Sep 17 00:00:00 2001 From: bt Date: Thu, 4 Jun 2026 16:11:03 +0200 Subject: [common] Include milliseconds in timestamps --- cmd/client/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/client') diff --git a/cmd/client/main.go b/cmd/client/main.go index 15033ab..f135a69 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -2,6 +2,7 @@ package main import ( "flag" + "fmt" "log" "net" "strings" @@ -20,7 +21,7 @@ var ( type Handler struct{} func (h *Handler) HandleMessage(msg core.Message) { - log.Println("received message", msg.Source, "->", msg.Target, msg.Content) + fmt.Printf("%s\t%s -> %s %s\n", msg.Timestamp.Format("2006/01/02 15:04:05.000"), msg.Source, msg.Target, msg.Content) } func (h *Handler) HandleError(err error) { -- cgit v1.2.3