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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
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():
...
@@ -196,7 +196,12 @@ def runwsgi():
else
:
else
:
event_log_handler
=
logging
.
FileHandler
(
args
.
event_log_file
)
event_log_handler
=
logging
.
FileHandler
(
args
.
event_log_file
)
event_log_handler
.
setFormatter
(
logging
.
Formatter
(
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"
,
"------
\
n
%(asctime)s,%(msecs)03d %(levelname)s %(name)s %(message)s"
,
"%Y-%m-%d %H:%M:%S"
))
"%Y-%m-%d %H:%M:%S"
))
root_logger
.
addHandler
(
event_log_handler
)
root_logger
.
addHandler
(
event_log_handler
)
...
@@ -232,7 +237,6 @@ def runwsgi():
...
@@ -232,7 +237,6 @@ def runwsgi():
if
conf
.
debug_mode
:
if
conf
.
debug_mode
:
console_handler
=
logging
.
StreamHandler
(
sys
.
stderr
)
console_handler
=
logging
.
StreamHandler
(
sys
.
stderr
)
console_handler
.
setFormatter
(
logging
.
Formatter
(
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"
,
"%(asctime)s,%(msecs)03d %(levelname)s %(name)s %(message)s"
,
"%Y-%m-%d %H:%M:%S"
))
"%Y-%m-%d %H:%M:%S"
))
console_handler
.
setLevel
(
logging
.
NOTSET
)
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