Skip to content

Commit ebe940a

Browse files
committed
netplugin/netd.go: call Fatalf to use formatting
Signed-off-by: Cristian Staretu <[email protected]>
1 parent 503ac90 commit ebe940a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netplugin/netd.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func initNetPluginConfig(ctx *cli.Context) (*plugin.Config, error) {
8181
if controlIP == "" {
8282
controlIP, configErr = netutils.GetDefaultAddr()
8383
if configErr != nil {
84-
logrus.Fatal("Failed to get host address: %s", configErr.Error())
84+
logrus.Fatalf("Failed to get host address: %s", configErr.Error())
8585
}
8686
}
8787
logrus.Infof("Using netplugin control IP: %v", controlIP)
@@ -90,7 +90,7 @@ func initNetPluginConfig(ctx *cli.Context) (*plugin.Config, error) {
9090
if vtepIP == "" {
9191
vtepIP, configErr = netutils.GetDefaultAddr()
9292
if configErr != nil {
93-
logrus.Fatal("Failed to get host address: %s", configErr.Error())
93+
logrus.Fatalf("Failed to get host address: %s", configErr.Error())
9494
}
9595
}
9696
logrus.Infof("Using netplugin VTEP IP: %v", vtepIP)

0 commit comments

Comments
 (0)