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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
59c3e699
Commit
59c3e699
authored
Oct 10, 2023
by
Vincent Pelletier
Committed by
Kazuhiko Shiozaki
Jul 11, 2024
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
f9c9d483
Changes
1
Hide 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 @
59c3e699
...
...
@@ -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