Explorar el Código

log output: fix backend initialization failed error output

Currently the output prints the %v formatting. This should use
log.Errorf instead of log.Error

Fixes #67
Raymond Barbiero hace 10 años
padre
commit
2337a9bf0f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -189,7 +189,7 @@ func run(be backend.Backend, exit chan int) {
 
 	sn, err := be.Init(iface, ipaddr, opts.ipMasq)
 	if err != nil {
-		log.Error("Could not init %v backend: %v", be.Name(), err)
+		log.Errorf("Could not init %v backend: %v", be.Name(), err)
 		return
 	}