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
Léo-Paul Géneau
erp5
Commits
86582f1f
Commit
86582f1f
authored
Oct 10, 2023
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zopewsgi: Fix msec log format
So that msec=1 is logged as ",001" and not as ",1".
parent
3b017fb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
product/ERP5/bin/zopewsgi.py
product/ERP5/bin/zopewsgi.py
+4
-2
No files found.
product/ERP5/bin/zopewsgi.py
View file @
86582f1f
...
...
@@ -196,7 +196,8 @@ def runwsgi():
else
:
event_log_handler
=
logging
.
FileHandler
(
args
.
event_log_file
)
event_log_handler
.
setFormatter
(
logging
.
Formatter
(
"------
\
n
%(asctime)s,%(msecs)d %(levelname)s %(name)s %(message)s"
,
# XXX: why are msec treated separately from the rest of the timestamp ?
"------
\
n
%(asctime)s,%(msecs)03d %(levelname)s %(name)s %(message)s"
,
"%Y-%m-%d %H:%M:%S"
))
root_logger
.
addHandler
(
event_log_handler
)
...
...
@@ -231,7 +232,8 @@ def runwsgi():
if
conf
.
debug_mode
:
console_handler
=
logging
.
StreamHandler
(
sys
.
stderr
)
console_handler
.
setFormatter
(
logging
.
Formatter
(
"%(asctime)s,%(msecs)d %(levelname)s %(name)s %(message)s"
,
# 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
)
root_logger
.
addHandler
(
console_handler
)
...
...
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