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.
|
||||
var (
|
||||
netLogger *netlogger.Logger
|
||||
log *logger.Logger
|
||||
netLog *netlogger.Logger
|
||||
log *logger.Logger
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -166,7 +166,7 @@ func handleFlags() config.Config {
|
|||
cfg.LogLevel = defaultLogVerbosity
|
||||
}
|
||||
|
||||
netLogger = netlogger.New()
|
||||
netLog = netlogger.New()
|
||||
log = logger.New(
|
||||
cfg.LogLevel,
|
||||
io.MultiWriter(
|
||||
|
@ -176,7 +176,7 @@ func handleFlags() config.Config {
|
|||
MaxBackups: 10,
|
||||
MaxAge: 28, // days
|
||||
},
|
||||
netLogger,
|
||||
netLog,
|
||||
),
|
||||
true,
|
||||
)
|
||||
|
@ -315,7 +315,7 @@ func run(cfg config.Config) {
|
|||
continue
|
||||
}
|
||||
|
||||
err = netLogger.Send(ns)
|
||||
err = netLog.Send(ns)
|
||||
if err != nil {
|
||||
log.Log(logger.Warning, pkg+"Logs could not be sent", "error", err.Error())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue