Browse Source

[2854] added a log message after updating data source config.

JINMEI Tatuya 12 years ago
parent
commit
efe8fae1cf
2 changed files with 9 additions and 0 deletions
  1. 4 0
      src/bin/memmgr/memmgr.py.in
  2. 5 0
      src/bin/memmgr/memmgr_messages.mes

+ 4 - 0
src/bin/memmgr/memmgr.py.in

@@ -143,6 +143,10 @@ class Memmgr(BIND10Server):
             genid, clients_map = self._datasrc_clients_mgr.get_clients_map()
             datasrc_info = DataSrcInfo(genid, clients_map, self._config_params)
             self._datasrc_info_list.append(datasrc_info)
+
+            # Full datasrc reconfig will be rare, so would be worth logging
+            # at the info level.
+            logger.info(MEMMGR_DATASRC_RECONFIGURED, genid)
         except isc.server_common.datasrc_clients_mgr.ConfigError as ex:
             logger.error(MEMMGR_DATASRC_CONFIG_ERROR, ex)
 

+ 5 - 0
src/bin/memmgr/memmgr_messages.mes

@@ -36,6 +36,11 @@ the update but memmgr produces this error, it's quite likely that the
 system isn't working as expected, and is probably better to be shut down
 to figure out and fix the cause.
 
+% MEMMGR_DATASRC_RECONFIGURED data source configuration has been updated, generation ID %1
+The memmgr daemon received a new version of data source configuration,
+and has successfully applied it to the local state.  Loading of new zone
+data into memory will possibly take place.
+
 % MEMMGR_NO_DATASRC_CONF failed to add data source configuration: %1
 The memmgr daemon tried to incorporate data source configuration
 on its startup but failed to do so.  The most likely cause of this