summaryrefslogtreecommitdiffstats
path: root/cmd/client/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/client/main.go')
-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) {