Selaa lähdekoodia

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 10 vuotta sitten
vanhempi
commit
2337a9bf0f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
 	}