diff --git a/cmd/root.go b/cmd/root.go index 47f7133..ff1cac3 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -364,7 +364,10 @@ func runUpdatesWithNotifications(filter t.Filter) *metrics.Metric { } notifier.SendNotification(result) metricResults := metrics.NewMetric(result) - log.Debugf("Session done: %v scanned, %v updated, %v failed", - metricResults.Scanned, metricResults.Updated, metricResults.Failed) + notifications.LocalLog.WithFields(log.Fields{ + "Scanned": metricResults.Scanned, + "Updated": metricResults.Updated, + "Failed": metricResults.Failed, + }).Info("Session done") return metricResults } diff --git a/pkg/notifications/shoutrrr.go b/pkg/notifications/shoutrrr.go index ac293fb..1611a04 100644 --- a/pkg/notifications/shoutrrr.go +++ b/pkg/notifications/shoutrrr.go @@ -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") } }()