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 năm trước cách đây
mục cha
commit
2337a9bf0f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 	}