mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
feat: improve session result logging (#1123)
- logs the session result as an info level message without notification instead of debug - does not log that no notification was sent if there are no notifications enabled
This commit is contained in:
parent
d9d6f794a1
commit
782529ddbd
2 changed files with 6 additions and 3 deletions
|
@ -152,7 +152,7 @@ func (n *shoutrrrTypeNotifier) sendEntries(entries []*log.Entry, report t.Report
|
|||
go func() {
|
||||
if err != nil {
|
||||
LocalLog.WithError(err).Fatal("Notification template error")
|
||||
} else {
|
||||
} else if len(n.Urls) > 1 {
|
||||
LocalLog.Info("Skipping notification due to empty message")
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue