Opened on 05/05/2015 at 01:29:29 PM
Closed on 05/05/2015 at 02:59:06 PM
#2456 closed change (fixed)
[cms] Use logging module
Reported by: | sebastian | Assignee: | sebastian |
---|---|---|---|
Priority: | P3 | Milestone: | |
Module: | Sitescripts | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #2432 | Platform: | Unknown |
Ready: | yes | Confidential: | no |
Tester: | Verified working: | no | |
Review URL(s): |
Description
Background
Currently the CMS logs warnings to stderr using the print statement. However, for consistency, best practice, and issues with non-ascii log output (in the future) the logging module should be used instead.
What to change
In the CMS, replace code like print >>sys.stder, 'Warning: ..' with logging.warning(..).
However, using the logging module interferes with the logging of werkzeug's development web server. To avoid issues here, the werkzeug logger must be configured explicitly, and must not propagate its messages.
Attachments (0)
Change History (2)
Note: See
TracTickets for help on using
tickets.
https://hg.adblockplus.org/cms/rev/4ed00d967b55