mirror of https://bitbucket.org/ausocean/av.git
main: netLogger → netLog
This commit is contained in:
parent
0e94a0172b
commit
62141926ff
|
@ -76,8 +76,8 @@ var canProfile = true
|
||||||
|
|
||||||
// The logger that will be used throughout.
|
// The logger that will be used throughout.
|
||||||
var (
|
var (
|
||||||
netLogger *netlogger.Logger
|
netLog *netlogger.Logger
|
||||||
log *logger.Logger
|
log *logger.Logger
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -166,7 +166,7 @@ func handleFlags() config.Config {
|
||||||
cfg.LogLevel = defaultLogVerbosity
|
cfg.LogLevel = defaultLogVerbosity
|
||||||
}
|
}
|
||||||
|
|
||||||
netLogger = netlogger.New()
|
netLog = netlogger.New()
|
||||||
log = logger.New(
|
log = logger.New(
|
||||||
cfg.LogLevel,
|
cfg.LogLevel,
|
||||||
io.MultiWriter(
|
io.MultiWriter(
|
||||||
|
@ -176,7 +176,7 @@ func handleFlags() config.Config {
|
||||||
MaxBackups: 10,
|
MaxBackups: 10,
|
||||||
MaxAge: 28, // days
|
MaxAge: 28, // days
|
||||||
},
|
},
|
||||||
netLogger,
|
netLog,
|
||||||
),
|
),
|
||||||
true,
|
true,
|
||||||
)
|
)
|
||||||
|
@ -315,7 +315,7 @@ func run(cfg config.Config) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
err = netLogger.Send(ns)
|
err = netLog.Send(ns)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Log(logger.Warning, pkg+"Logs could not be sent", "error", err.Error())
|
log.Log(logger.Warning, pkg+"Logs could not be sent", "error", err.Error())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue