Commit 2115ed0b authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[3074] Add logging

parent dab09274
......@@ -765,9 +765,14 @@ class Init:
it might want to choose if it is for this one).
"""
logger.info(BIND10_STOP_PROCESS, process)
self.cc_session.group_sendmsg(isc.config.ccsession.
create_command('shutdown', {'pid': pid}),
recipient, recipient)
try:
self.cc_session.group_sendmsg(isc.config.ccsession.
create_command('shutdown',
{'pid': pid}),
recipient, recipient)
except:
logger.error(BIND10_COMPONENT_SHUTDOWN_ERROR, process)
raise
def component_shutdown(self, exitcode=0):
"""
......
......@@ -329,3 +329,6 @@ ten seconds.
% BIND10_RECONFIGURE_ERROR Error applying new config: %1
A new configuration was received, but there was an error doing the
re-configuration.
% BIND10_COMPONENT_SHUTDOWN_ERROR An error occured stopping component %1
An attempt to gracefully shutdown a component failed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment