Fixup notification logging to stdout and notifications fixes.
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
39716fd530
commit
eb7a1dec82
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.
3
main.go
3
main.go
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue