2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 23:15:20 +00:00

[1818] Log components startup properly

This commit is contained in:
Mukund Sivaraman
2012-04-11 15:51:06 +05:30
parent 8b8dbb612b
commit a2da847353
6 changed files with 14 additions and 2 deletions

View File

@@ -1576,6 +1576,7 @@ class Xfrin:
logger.error(XFRIN_MSGQ_SEND_ERROR_ZONE_MANAGER, ZONE_MANAGER_MODULE_NAME) logger.error(XFRIN_MSGQ_SEND_ERROR_ZONE_MANAGER, ZONE_MANAGER_MODULE_NAME)
def startup(self): def startup(self):
logger.info(XFRIN_STARTED)
while not self._shutdown_event.is_set(): while not self._shutdown_event.is_set():
self._cc_check_command() self._cc_check_command()

View File

@@ -129,8 +129,9 @@ zone is not known to the system. This may indicate that the configuration
for xfrin is incomplete, or there was a typographical error in the for xfrin is incomplete, or there was a typographical error in the
zone name in the configuration. zone name in the configuration.
% XFRIN_STARTING starting resolver with command line '%1' % XFRIN_STARTED xfrin started
An informational message, this is output when the resolver starts up. This informational message is output by xfrin when all initialization
has been completed and it is entering its main loop.
% XFRIN_STOPPED_BY_KEYBOARD keyboard interrupt, shutting down % XFRIN_STOPPED_BY_KEYBOARD keyboard interrupt, shutting down
There was a keyboard interrupt signal to stop the xfrin daemon. The There was a keyboard interrupt signal to stop the xfrin daemon. The

View File

@@ -1002,6 +1002,7 @@ class XfroutServer:
def run(self): def run(self):
'''Get and process all commands sent from cfgmgr or other modules. ''' '''Get and process all commands sent from cfgmgr or other modules. '''
logger.info(XFROUT_STARTED)
while not self._shutdown_event.is_set(): while not self._shutdown_event.is_set():
self._cc.check_command(False) self._cc.check_command(False)

View File

@@ -133,6 +133,10 @@ be a result of rare local error such as memory allocation failure and
shouldn't happen under normal conditions. The error is included in the shouldn't happen under normal conditions. The error is included in the
log message. log message.
% XFROUT_STARTED xfrout started
This informational message is output by xfrout when all initialization
has been completed and it is entering its main loop.
% XFROUT_STOPPED_BY_KEYBOARD keyboard interrupt, shutting down % XFROUT_STOPPED_BY_KEYBOARD keyboard interrupt, shutting down
There was a keyboard interrupt signal to stop the xfrout daemon. The There was a keyboard interrupt signal to stop the xfrout daemon. The
daemon will now shut down. daemon will now shut down.

View File

@@ -657,6 +657,7 @@ class Zonemgr:
return answer return answer
def run(self): def run(self):
logger.info(ZONEMGR_STARTED)
self.running = True self.running = True
try: try:
while not self._shutdown_event.is_set(): while not self._shutdown_event.is_set():

View File

@@ -67,6 +67,10 @@ zone manager to record the master server for the zone and start a timer;
when the timer expires, the master will be polled to see if it contains when the timer expires, the master will be polled to see if it contains
new data. new data.
% ZONEMGR_STARTED zonemgr started
This informational message is output by zonemgr when all initialization
has been completed and it is entering its main loop.
% ZONEMGR_RECEIVE_SHUTDOWN received SHUTDOWN command % ZONEMGR_RECEIVE_SHUTDOWN received SHUTDOWN command
This is a debug message indicating that the zone manager has received This is a debug message indicating that the zone manager has received
a SHUTDOWN command over the command channel from the Boss process. a SHUTDOWN command over the command channel from the Boss process.