diff options
Diffstat (limited to 'src/lib/Bcfg2/Logger.py')
-rw-r--r-- | src/lib/Bcfg2/Logger.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Logger.py b/src/lib/Bcfg2/Logger.py index d2e0ff957..f9fd42d33 100644 --- a/src/lib/Bcfg2/Logger.py +++ b/src/lib/Bcfg2/Logger.py @@ -193,6 +193,7 @@ def add_file_handler(level=logging.DEBUG): def default_log_level(): + """ Get the default log level, according to the configuration """ if Bcfg2.Options.setup.debug: return logging.DEBUG elif Bcfg2.Options.setup.verbose: @@ -248,6 +249,10 @@ class Debuggable(object): #: applicable to the child class __rmi__ = ['toggle_debug', 'set_debug'] + #: How exposed XML-RPC functions should be dispatched to child + #: processes. + __child_rmi__ = __rmi__[:] + def __init__(self, name=None): """ :param name: The name of the logger object to get. If none is @@ -267,9 +272,6 @@ class Debuggable(object): :returns: bool - The new value of the debug flag """ self.debug_flag = debug - self.debug_log("%s: debug = %s" % (self.__class__.__name__, - self.debug_flag), - flag=True) return debug def toggle_debug(self): @@ -293,6 +295,8 @@ class Debuggable(object): class _OptionContainer(object): + """ Container for options loaded at import-time to configure + logging """ options = [ Bcfg2.Options.BooleanOption( '-d', '--debug', help='Enable debugging output', |