Skip to content

Commit

Permalink
Use logger (not stdout) for unlisten error
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhpedersen committed Nov 18, 2017
1 parent d86d645 commit 2482502
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions listen.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package main

import (
"fmt"
"log"
"net"
"strings"
Expand All @@ -20,7 +19,7 @@ func Unlisten(param string) {
for _, method := range methods {
ok, err := listenHub.Disable(method)
if err != nil {
fmt.Printf("Unable to close %s listener: %s", method, err)
log.Printf("Unable to close %s listener: %s", method, err)
} else if !ok {
log.Printf("No active %s listener, ignoring.\n", method)
}
Expand Down

0 comments on commit 2482502

Please sign in to comment.