From f80c5df971c30c009b09cb69bb7ccc61d1165bfd Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 2 Jun 2017 08:46:27 -0700 Subject: [PATCH] control: log the start and end of rehash to INFO --- coremods/control.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coremods/control.py b/coremods/control.py index 90cbc26..3d273ce 100644 --- a/coremods/control.py +++ b/coremods/control.py @@ -84,6 +84,7 @@ signal.signal(signal.SIGINT, sigterm_handler) def _rehash(): """Rehashes the PyLink daemon.""" + log.info('Reloading PyLink configuration...') old_conf = conf.conf.copy() fname = conf.fname new_conf = conf.loadConf(fname, errors_fatal=False, logger=log) @@ -130,6 +131,7 @@ def _rehash(): if (network not in world.networkobjects) or (not world.networkobjects[network].connection_thread.is_alive()): proto = utils.getProtocolModule(sdata['protocol']) world.networkobjects[network] = classes.Irc(network, proto, new_conf) + log.info('Finished reloading PyLink configuration.') if os.name == 'posix': # Only register SIGHUP on *nix.