diff --git a/cmd/vidforward/main.go b/cmd/vidforward/main.go index b474c155..9f538cf6 100644 --- a/cmd/vidforward/main.go +++ b/cmd/vidforward/main.go @@ -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)