mirror of https://bitbucket.org/ausocean/av.git
Use correct log level global variable
This commit is contained in:
parent
16df4ed2aa
commit
db84c5bfcf
|
@ -65,7 +65,6 @@ const (
|
|||
logMaxSize = 500 // MB
|
||||
logMaxBackup = 10
|
||||
logMaxAge = 28 // days
|
||||
logVerbosity = logging.Info
|
||||
logSuppress = true
|
||||
)
|
||||
|
||||
|
@ -456,7 +455,7 @@ func (m *broadcastManager) createOrUpdate(broadcast Broadcast) error {
|
|||
signalCh := make(chan struct{})
|
||||
m.slateExitSignals[broadcast.mac] = signalCh
|
||||
|
||||
err := writeSlateAndCheckErrors(broadcast.rv, signalCh, m.log)
|
||||
err := writeSlateAndCheckErrors(maybeOld.rv, signalCh, m.log)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -512,7 +511,7 @@ func main() {
|
|||
|
||||
// Create logger that we call methods on to log, which in turn writes to the
|
||||
// lumberjack and netloggers.
|
||||
log := logging.New(logVerbosity, io.MultiWriter(fileLog), logSuppress)
|
||||
log := logging.New(loggingLevel, io.MultiWriter(fileLog), logSuppress)
|
||||
|
||||
global.SetLogger(log)
|
||||
|
||||
|
|
Loading…
Reference in New Issue