Skip to content

Commit

Permalink
fixing fatalf behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
mcuadros committed Nov 25, 2014
1 parent 314ff51 commit 8a1a192
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logger/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (l *Logger) Errorf(format string, v ...interface{}) {
}

func (l *Logger) Fatalf(format string, v ...interface{}) {
l.logger.Fatalf(l.fatalLabel+format, v)
l.logger.Fatalf(l.fatalLabel+format, v...)
}

func (l *Logger) Debugf(format string, v ...interface{}) {
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (s *Server) AcceptLoop() {
Noticef("Listening for client connections on %s", hp)
l, e := net.Listen("tcp", hp)
if e != nil {
Fatalf("Error listening on port: %d - %v", s.opts.Port, e)
Fatalf("Error listening on port: %s, %q", hp, e)
return
}

Expand Down

0 comments on commit 8a1a192

Please sign in to comment.