Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
6ab94292
Commit
6ab94292
authored
Aug 02, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #1234: an exception triple passed to LOG() was not propagated properly to
the logging module of Python
parent
f5668f66
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/zLOG/EventLogger.py
lib/python/zLOG/EventLogger.py
+12
-0
No files found.
doc/CHANGES.txt
View file @
6ab94292
...
@@ -139,6 +139,9 @@ Zope Changes
...
@@ -139,6 +139,9 @@ Zope Changes
Bugs fixed
Bugs fixed
- Collector #1234: an exception triple passed to LOG() was not
propagated properly to the logging module of Python
- Collector #1441: Removed headers introduced to make Microsoft
- Collector #1441: Removed headers introduced to make Microsoft
webfolders and office apps happy, since they make a lot of
webfolders and office apps happy, since they make a lot of
standards-compliant things unhappy AND they trick MS Office
standards-compliant things unhappy AND they trick MS Office
...
...
lib/python/zLOG/EventLogger.py
View file @
6ab94292
...
@@ -42,6 +42,18 @@ def log_write(subsystem, severity, summary, detail, error):
...
@@ -42,6 +42,18 @@ def log_write(subsystem, severity, summary, detail, error):
msg
=
"%s
\
n
%s"
%
(
msg
,
detail
)
msg
=
"%s
\
n
%s"
%
(
msg
,
detail
)
logger
=
logging
.
getLogger
(
subsystem
)
logger
=
logging
.
getLogger
(
subsystem
)
# Since the logging module of Python does not allow to pass a
# traceback triple, we need to fake the exception. (See also
# Collector #1234).
if
isinstance
(
error
,
tuple
):
try
:
raise
error
[
0
],
error
[
1
],
error
[
2
]
except
:
pass
logger
.
log
(
level
,
msg
,
exc_info
=
(
error
is
not
None
))
logger
.
log
(
level
,
msg
,
exc_info
=
(
error
is
not
None
))
...
...
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