Skip to content

Commit

Permalink
Change log to fmt for a couple of messages
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Sep 8, 2022
1 parent 9348cb9 commit d28c3da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d28c3da

Please sign in to comment.