Bug 1084995 - Disable iso8601 in debug logs by default
Summary: Disable iso8601 in debug logs by default
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 4.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 7.0 (Kilo)
Assignee: Eoghan Glynn
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks: 1040649
TreeView+ depends on / blocked
 
Reported: 2014-04-07 13:40 UTC by Russell Bryant
Modified: 2023-09-14 02:05 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-05 16:55:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Russell Bryant 2014-04-07 13:40:10 UTC
While debugging an issue with a partner, I asked them to turn on debug=True for Nova to collect some more information.  After collecting the debug log file from the compute node, I noticed that over 70% of the log file was taken up with entries like this:

2014-04-06 03:25:46.039 125211 DEBUG iso8601.iso8601 [-] Got u'2014' for 'year' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.039 125211 DEBUG iso8601.iso8601 [-] Got u'04' for 'month' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.039 125211 DEBUG iso8601.iso8601 [-] Got u'04' for 'day' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.040 125211 DEBUG iso8601.iso8601 [-] Got u'01' for 'hour' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.040 125211 DEBUG iso8601.iso8601 [-] Got u'54' for 'minute' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.040 125211 DEBUG iso8601.iso8601 [-] Got u'55' for 'second' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.040 125211 DEBUG iso8601.iso8601 [-] Parsed 2014-04-04T02:00:44Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'02', 'tz_hour': None, 'month': u'04', 'timezone': u'Z', 'second': u'44', 'tz_minute': None, 'year': u'2014', 'separator': u'T', 'day': u'04', 'minute': u'00'} with default timezone <iso8601.iso8601.Utc object at 0x2052e90> parse_date /usr/lib/python2.6/site-packages/iso8601/iso8601.py:166


This output is overly verbose and not useful.  It should be disabled by default.    RHOS 5.0 already has this disabled by default, so it would be helpful to backport this particular change to RHOS 4.0.

The change is to add "iso8601=WARN" to the default list of values of the config option "default_log_levels".

Comment 7 Red Hat Bugzilla 2023-09-14 02:05:58 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.