Browse Source

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 years ago
parent
commit
2337a9bf0f
1 changed files with 1 additions and 1 deletions
  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
 	}