diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2009-01-22 09:58:35 -0700 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-03 15:29:00 -0500 |
commit | 6aadeb9aea60165d9c68b348dae4df456b00dfc4 (patch) | |
tree | 93f957952dd32d52eef0197d533df601b7804925 /ipalib/constants.py | |
parent | 529819b02b1c6e78b85481b417ae896b7237f0e2 (diff) | |
download | freeipa-6aadeb9aea60165d9c68b348dae4df456b00dfc4.tar.gz freeipa-6aadeb9aea60165d9c68b348dae4df456b00dfc4.tar.xz freeipa-6aadeb9aea60165d9c68b348dae4df456b00dfc4.zip |
Added Object.params_minus() method; various small tweaks
Diffstat (limited to 'ipalib/constants.py')
-rw-r--r-- | ipalib/constants.py | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py index 5687c53e..e229b466 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -51,31 +51,20 @@ CLI_TAB = ' ' # Two spaces # The section to read in the config files, i.e. [global] CONFIG_SECTION = 'global' - -# Log format for console output -LOG_FORMAT_STDERR = ': '.join([ - '%(name)s', +# Log format for stderr: +FORMAT_STDERR = ': '.join([ + 'ipa', '%(levelname)s', '%(message)s', ]) - -# Log format for console output when env.dubug is True: -LOG_FORMAT_STDERR_DEBUG = ' '.join([ - '%(levelname)s', - '%(message)r', - '%(lineno)d', - '%(filename)s', -]) - - -# Tab-delimited log format for file (easy to opened in a spreadsheet): -LOG_FORMAT_FILE = '\t'.join([ - '%(asctime)s', +# Log format for log file: +FORMAT_FILE = '\t'.join([ + '%(created)f', '%(levelname)s', '%(message)r', # Using %r for repr() so message is a single line - '%(lineno)d', - '%(pathname)s', + '%(process)d', + '%(threadName)s', ]) @@ -110,11 +99,6 @@ DEFAULT_CONFIG = ( ('debug', False), ('mode', 'production'), - # Logging: - ('log_format_stderr', LOG_FORMAT_STDERR), - ('log_format_stderr_debug', LOG_FORMAT_STDERR_DEBUG), - ('log_format_file', LOG_FORMAT_FILE), - # ******************************************************** # The remaining keys are never set from the values here! # ******************************************************** |