Skip to content

Commit cb0729f

Browse files
committed
Log event filters
1 parent e18f11b commit cb0729f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/docker_handler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,14 @@ func (c *DockerHandler) ConfigFromLabelsEnabled() bool {
100100

101101
// Watch for Docker events and update the labels accordingly
102102
func (c *DockerHandler) watch() {
103-
c.logger.Debugf("Listening for Docker events to hot reload configs...")
104103
events := make(chan *docker.APIEvents)
105104
var filters = map[string][]string{
106105
"type": {"container"},
107106
"label": c.filters["label"],
108107
}
109108

109+
c.logger.Debugf("Listening for Docker events (with following filters %v) to hot reload configs...", filters)
110+
110111
if err := c.dockerClient.AddEventListenerWithOptions(docker.EventsOptions{
111112
Filters: filters}, events); err != nil {
112113
c.logger.Errorf("Error adding event listener: %v", err)

0 commit comments

Comments
 (0)