Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Nicolas Wavrant
ZODB
Commits
294ab236
Commit
294ab236
authored
Apr 08, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to be a bit more careful in setting up the event logger; some things should
be done as late as possible (if ever)
parent
ed1a090b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/zLOG/EventLogger.py
src/zLOG/EventLogger.py
+6
-3
No files found.
src/zLOG/EventLogger.py
View file @
294ab236
...
...
@@ -35,9 +35,10 @@ class EventLogger(BaseLogger):
# Get our logger object:
logger
=
logging
.
getLogger
(
'event'
)
# Add a null handler to prevent warnings about loggers with no handlers:
logger
.
addHandler
(
loghandler
.
NullHandler
())
logger
.
propagate
=
0
if
not
logger
.
handlers
:
# Add a null handler to prevent warnings about loggers with no
# handlers:
logger
.
addHandler
(
loghandler
.
NullHandler
())
def
log
(
self
,
subsystem
,
severity
,
summary
,
detail
,
error
):
...
...
@@ -200,3 +201,5 @@ def initialize_from_environment():
for
handler
in
handlers
:
event_logger
.
logger
.
addHandler
(
handler
)
event_logger
.
logger
.
propagate
=
0
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