[TASK] disable notify

This commit is contained in:
Martin Geno 2017-09-05 10:19:22 +02:00
parent 14f3b40235
commit f10a4f5918
No known key found for this signature in database
GPG Key ID: F0D39A37E925E941
1 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@ import (
"os"
"os/signal"
"syscall"
"time"
"github.com/genofire/logmania/bot"
"github.com/genofire/logmania/lib"
@ -58,8 +59,9 @@ func main() {
log.Save(a)
}
}()
go notifyState.Alert(config.Notify.AlertCheck.Duration, log.Save)
if config.Notify.AlertCheck.Duration > time.Duration(time.Second) {
go notifyState.Alert(config.Notify.AlertCheck.Duration, log.Save)
}
log.Info("starting logmania")