Call Log() _after_ initializing Logger.

This commit is contained in:
Alan Noble 2018-06-24 19:52:46 +09:30
parent df36237c22
commit 4fc6e69b12
1 changed files with 1 additions and 2 deletions

View File

@ -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.