summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorbt <bt@rctt.net>2026-06-04 16:11:03 +0200
committerbt <bt@rctt.net>2026-06-04 16:12:22 +0200
commited2621c17f353878ea86ce2c16cac7cd04fb4c6a (patch)
tree21735f781749a3b2986fb8fbd44e9a3ef94d8a66 /cmd
parent061b0ac8e8d1cefbb7ffcf3eb8695a28663cda3e (diff)
downloadsolec-ed2621c17f353878ea86ce2c16cac7cd04fb4c6a.tar.gz
solec-ed2621c17f353878ea86ce2c16cac7cd04fb4c6a.zip
[common] Include milliseconds in timestamps
Diffstat (limited to 'cmd')
-rw-r--r--cmd/client/main.go3
1 files changed, 2 insertions, 1 deletions
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) {