File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -100,13 +100,14 @@ func (c *DockerHandler) ConfigFromLabelsEnabled() bool {
100100
101101// Watch for Docker events and update the labels accordingly
102102func (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 )
You can’t perform that action at this time.
0 commit comments