mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
Support --debug flag
Also adds better logging output
This commit is contained in:
parent
3d0c853e42
commit
bfed95ecaf
46 changed files with 3418 additions and 17 deletions
|
@ -4,6 +4,7 @@ import (
|
|||
"math/rand"
|
||||
|
||||
"github.com/CenturyLinkLabs/watchtower/container"
|
||||
log "github.com/Sirupsen/logrus"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -13,6 +14,8 @@ var (
|
|||
func allContainersFilter(container.Container) bool { return true }
|
||||
|
||||
func Update(client container.Client) error {
|
||||
log.Info("Checking containers for updated images")
|
||||
|
||||
containers, err := client.ListContainers(allContainersFilter)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue