Skip to content

Commit

Permalink
Merge pull request #472 from cgalibern/b2.1
Browse files Browse the repository at this point in the history
log ["service", "status", path] deletion during update_node_data()
  • Loading branch information
cgalibern committed Oct 19, 2021
2 parents fb2a08f + 56f6f66 commit 010ecb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opensvc/daemon/monitor.py
Expand Up @@ -3313,7 +3313,7 @@ def update_services_config(self):
with shared.SERVICES_LOCK:
for path in list(shared.SERVICES.keys()):
if path not in config:
self.log.info("purge deleted %s from daemon data", path)
self.log.info("purge deleted object %s from daemon data", path)
del shared.SERVICES[path]
self.node_data.unset_safe(["services", "status", path])
self.node_data.set(["services", "config"], config)
Expand Down Expand Up @@ -3668,8 +3668,8 @@ def update_node_data(self):
# path, global_expect)
continue
try:
self.log.info("purge deleted object %s from daemon status data", path)
self.node_data.unset(["services", "status", path])
self.log.debug("purge deleted service %s from status data", path)
except KeyError:
pass

Expand Down

0 comments on commit 010ecb7

Please sign in to comment.