diff options
author | Jelte Jansen <jelte@isc.org> | 2011-06-27 18:49:06 +0200 |
---|---|---|
committer | Jelte Jansen <jelte@isc.org> | 2011-06-27 18:49:06 +0200 |
commit | 91bab51181c8ebc89e0ee2e735cc6e851eb6b93d (patch) | |
tree | 66f6724a38c4108f28a5f3fc36cd9c08abf1502e /src/bin/cfgmgr | |
parent | [trac759] add (empty) messages file (diff) | |
download | kea-91bab51181c8ebc89e0ee2e735cc6e851eb6b93d.tar.xz kea-91bab51181c8ebc89e0ee2e735cc6e851eb6b93d.zip |
[trac759] replace prints with logger messages
Diffstat (limited to 'src/bin/cfgmgr')
-rwxr-xr-x | src/bin/cfgmgr/b10-cfgmgr.py.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/cfgmgr/b10-cfgmgr.py.in b/src/bin/cfgmgr/b10-cfgmgr.py.in index ffb27f4324..831e5ae26a 100755 --- a/src/bin/cfgmgr/b10-cfgmgr.py.in +++ b/src/bin/cfgmgr/b10-cfgmgr.py.in @@ -28,6 +28,7 @@ import os.path import isc.log isc.log.init("b10-cfgmgr") from isc.config.cfgmgr import ConfigManager, ConfigManagerDataReadError, logger +from isc.config.cfgmgr_messages import * isc.util.process.rename() @@ -93,13 +94,12 @@ def main(): cm.notify_boss() cm.run() except SessionError as se: - print("[b10-cfgmgr] Error creating config manager, " - "is the command channel daemon running?") + logger.error(CFGMGR_CC_SESSION_ERROR, str(se)) return 1 except KeyboardInterrupt as kie: - print("[b10-cfgmgr] Interrupted, exiting") + logger.info(CFGMGR_STOPPED_BY_KEYBOARD) except ConfigManagerDataReadError as cmdre: - print("[b10-cfgmgr] " + str(cmdre)) + logger.error(CFGMGR_DATA_READ_ERROR, str(cmdre)) return 2 return 0 |