Skip to content

Commit

Permalink
Change log when daemon got interrupted before receiving its configura…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
mohierf committed Jul 26, 2017
1 parent 82b479a commit 13c7311
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions alignak/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,8 +1222,11 @@ def wait_for_initial_conf(self, timeout=1.0):
_, _ = self.make_a_pause(timeout, check_time_change=True)
# sys.stdout.write(".")
# sys.stdout.flush()
logger.info("Got initial configuration, waited for: %.2f", time.time() - _ts)
statsmgr.timer('initial-configuration', time.time() - _ts)
if not self.interrupted:
logger.info("Got initial configuration, waited for: %.2f", time.time() - _ts)
statsmgr.timer('initial-configuration', time.time() - _ts)
else:
logger.info("Interrupted before getting the initial configuration")

def hook_point(self, hook_name):
"""Used to call module function that may define a hook function
Expand Down

0 comments on commit 13c7311

Please sign in to comment.