From d28c3da6703c058bc29acdda735014f7d1ddbe21 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Thu, 8 Sep 2022 19:03:31 +0100 Subject: [PATCH] Change log to fmt for a couple of messages Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index f476d15..2146514 100644 --- a/main.go +++ b/main.go @@ -70,11 +70,12 @@ func forward(name, from string, to []string) error { seed := time.Now().UnixNano() rand.Seed(seed) + fmt.Printf("Listening on: %s\n", from) l, err := net.Listen("tcp", from) if err != nil { return fmt.Errorf("error listening on %s %s", from, err.Error()) } - log.Printf("listening on %s", from) + for { conn, err := l.Accept() if err != nil {