From 595074a0c4390f2b3f5658e3718ef8d4d63bac5a Mon Sep 17 00:00:00 2001 From: Dino Korah Date: Wed, 14 Jul 2021 15:47:17 +0100 Subject: [PATCH] Reverting changes --- stompd/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stompd/main.go b/stompd/main.go index 28d54ec..8be250f 100644 --- a/stompd/main.go +++ b/stompd/main.go @@ -33,7 +33,7 @@ func main() { for { select { case sig := <-stopChannel: - log.Println("received signal", sig) + log.Println("received signal:", sig) break } } @@ -54,10 +54,10 @@ func main() { l, err := net.Listen("tcp", *listenAddr) if err != nil { - log.Fatalln("failed to listen", err.Error()) + log.Fatalf("failed to listen: %s", err.Error()) } defer func() { l.Close() }() - log.Println("listening on ", l.Addr().Network(), l.Addr().String()) + log.Println("listening on", l.Addr().Network(), l.Addr().String()) server.Serve(l) }