main: netLogger → netLog

This commit is contained in:
Scott 2020-01-23 10:01:16 +10:30
parent 0e94a0172b
commit 62141926ff
1 changed files with 5 additions and 5 deletions

View File

@ -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())
}