diff options
| author | Joe Gordon <jogo@cloudscaling.com> | 2013-01-09 17:52:38 -0800 |
|---|---|---|
| committer | Joe Gordon <jogo@cloudscaling.com> | 2013-01-09 17:52:38 -0800 |
| commit | edcdd25a9199b9936546bbac1eab611089576f18 (patch) | |
| tree | 44eb820e2e7fa5a311c4742794bc8192cec77b4c /openstack | |
| parent | b17b268a269c4989d76267db5c2d49d4c20bd51d (diff) | |
| download | oslo-edcdd25a9199b9936546bbac1eab611089576f18.tar.gz oslo-edcdd25a9199b9936546bbac1eab611089576f18.tar.xz oslo-edcdd25a9199b9936546bbac1eab611089576f18.zip | |
Improve millisecond logging
Always display 3 digits for milliseconds (appends 0s)
Change-Id: I3f1461839258be0723e2d3616ec225a830d13029
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/log.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openstack/common/log.py b/openstack/common/log.py index d88a2c9..6c4521b 100644 --- a/openstack/common/log.py +++ b/openstack/common/log.py @@ -49,19 +49,19 @@ from openstack.common import notifier log_opts = [ cfg.StrOpt('logging_context_format_string', - default='%(asctime)s.%(msecs)d %(levelname)s %(name)s ' + default='%(asctime)s.%(msecs)03d %(levelname)s %(name)s ' '[%(request_id)s %(user)s %(tenant)s] %(instance)s' '%(message)s', help='format string to use for log messages with context'), cfg.StrOpt('logging_default_format_string', - default='%(asctime)s.%(msecs)d %(process)d %(levelname)s ' + default='%(asctime)s.%(msecs)03d %(process)d %(levelname)s ' '%(name)s [-] %(instance)s%(message)s', help='format string to use for log messages without context'), cfg.StrOpt('logging_debug_format_suffix', default='%(funcName)s %(pathname)s:%(lineno)d', help='data to append to log format when level is DEBUG'), cfg.StrOpt('logging_exception_prefix', - default='%(asctime)s.%(msecs)d %(process)d TRACE %(name)s ' + default='%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s ' '%(instance)s', help='prefix each line of exception output with this format'), cfg.ListOpt('default_log_levels', |
