mirror of https://bitbucket.org/ausocean/av.git
Call Log() _after_ initializing Logger.
This commit is contained in:
parent
df36237c22
commit
4fc6e69b12
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue