Fixup notification logging to stdout and notifications fixes.
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Colin 2024-06-13 12:04:06 -04:00
parent 39716fd530
commit eb7a1dec82
8 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -149,7 +149,8 @@ func monitorContainers() error {
if time.Since(mc.LastChecked) >= interval { if time.Since(mc.LastChecked) >= interval {
mc.LastChecked = time.Now() mc.LastChecked = time.Now()
mu.Unlock() mu.Unlock()
log.Printf("Checking container %s (%s)\n", mc.Info.Name, mc.Info.ID) log.Printf("Checking container %s (%s) with interval %s\n", mc.Info.Name, mc.Info.ID, mc.Info.Interval)
log.Printf("Container %s (%s) ignores: %v\n", mc.Info.Name, mc.Info.ID, mc.Info.Ignores)
checkAndNotify(mc.Info) checkAndNotify(mc.Info)
} else { } else {
mu.Unlock() mu.Unlock()