mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
control: log the start and end of rehash to INFO
This commit is contained in:
parent
60a0bcdc7a
commit
f80c5df971
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user