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
|
paused := false
|
||||||
|
|
||||||
if *useNetsender {
|
if *useNetsender {
|
||||||
config.Logger.Log(progName, "Info", "Running in NetSender mode")
|
|
||||||
// initialize NetSender and use NetSender's logger
|
// initialize NetSender and use NetSender's logger
|
||||||
config.Logger = netsender.Logger()
|
config.Logger = netsender.Logger()
|
||||||
|
config.Logger.Log(progName, "Info", "Running in NetSender mode")
|
||||||
err := ns.Init(nil, nil, nil)
|
err := ns.Init(nil, nil, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
config.Logger.Log(progName, "Error", err.Error()) // TODO(kortschak): Make this "Fatal" when that exists.
|
config.Logger.Log(progName, "Error", err.Error()) // TODO(kortschak): Make this "Fatal" when that exists.
|
||||||
|
|
Loading…
Reference in New Issue