From 4fc6e69b1273b001cdf7103d345eaf9f30ec4a79 Mon Sep 17 00:00:00 2001 From: Alan Noble Date: Sun, 24 Jun 2018 19:52:46 +0930 Subject: [PATCH] Call Log() _after_ initializing Logger. --- cmd/revid-cli/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index 6793a54b..bdefb4e3 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -245,10 +245,9 @@ func main() { paused := false if *useNetsender { - config.Logger.Log(progName, "Info", "Running in NetSender mode") // initialize NetSender and use NetSender's logger config.Logger = netsender.Logger() - + config.Logger.Log(progName, "Info", "Running in NetSender mode") err := ns.Init(nil, nil, nil) if err != nil { config.Logger.Log(progName, "Error", err.Error()) // TODO(kortschak): Make this "Fatal" when that exists.