Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
erp5
Commits
f58792eb
Commit
f58792eb
authored
Oct 10, 2023
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
product/ERP5/bin/zopewsgi.py: Resolve the XXX comments I just added
Thanks to Jérôme for digging these resources up.
parent
1cfc0ad4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
product/ERP5/bin/zopewsgi.py
product/ERP5/bin/zopewsgi.py
+6
-2
No files found.
product/ERP5/bin/zopewsgi.py
View file @
f58792eb
...
...
@@ -196,7 +196,12 @@ def runwsgi():
else
:
event_log_handler
=
logging
.
FileHandler
(
args
.
event_log_file
)
event_log_handler
.
setFormatter
(
logging
.
Formatter
(
# XXX: why are msec treated separately from the rest of the timestamp ?
# Note about msec: strftime does not have a standard was of specifying
# how milliseconds are to be rendered, and especially what separator to
# use. So, treat milliseconds separately from the rest of the timestamp.
# See also:
# https://docs.python.org/3/library/logging.html#logging.Formatter.formatTime
# https://stackoverflow.com/questions/6290739/python-logging-use-milliseconds-in-time-format/
"------
\
n
%(asctime)s,%(msecs)03d %(levelname)s %(name)s %(message)s"
,
"%Y-%m-%d %H:%M:%S"
))
root_logger
.
addHandler
(
event_log_handler
)
...
...
@@ -232,7 +237,6 @@ def runwsgi():
if
conf
.
debug_mode
:
console_handler
=
logging
.
StreamHandler
(
sys
.
stderr
)
console_handler
.
setFormatter
(
logging
.
Formatter
(
# XXX: why are msec treated separately from the rest of the timestamp ?
"%(asctime)s,%(msecs)03d %(levelname)s %(name)s %(message)s"
,
"%Y-%m-%d %H:%M:%S"
))
console_handler
.
setLevel
(
logging
.
NOTSET
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment