File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def __init__(self):
2020 self .daemon = True
2121 self .ondemand_containers = {}
2222 self .init_docker ()
23-
23+
2424 def init_docker (self ):
2525 try :
2626 docker_host = os .environ .get ("DOCKER_HOST" , None )
@@ -52,6 +52,8 @@ def process_containers(self):
5252 logging .info (f"Started monitoring { container .name } for urls: { container_urls } " )
5353 else :
5454 last_accessed = self .ondemand_containers [container .name ]["last_accessed" ]
55+ if container_urls != self .ondemand_containers ["urls" ]:
56+ logging .info (f"Updated urls for { container .name } to: { container_urls } " )
5557 self .ondemand_containers [container .name ] = { "status" : container .status , "urls" : container_urls , "last_accessed" : last_accessed }
5658
5759 def stop_containers (self ):
You can’t perform that action at this time.
0 commit comments