fixing fatalf behaviour

This commit is contained in:
Máximo Cuadros Ortiz
2014-11-25 23:21:35 +01:00
parent 314ff5117d
commit 8a1a1925c8
2 changed files with 2 additions and 2 deletions

View File

@@ -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{}) {

View File

@@ -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
}