Browse Source

fix format error string

flashmob 8 years ago
parent
commit
74b0540926
1 changed files with 1 additions and 1 deletions
  1. 1 1
      guerrilla.go

+ 1 - 1
guerrilla.go

@@ -232,7 +232,7 @@ func (g *guerrilla) subscribeEvents() {
 		if _, err := g.findServer(sc.ListenInterface); err != nil {
 			// not found, lets add it
 			if err := g.makeServers(); err != nil {
-				g.mainlog().WithError(err).Error("cannot add server [%s]", sc.ListenInterface)
+				g.mainlog().WithError(err).Errorf("cannot add server [%s]", sc.ListenInterface)
 				return
 			}
 			g.mainlog().Infof("New server added [%s]", sc.ListenInterface)