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
9d0f1e90
Commit
9d0f1e90
authored
Mar 16, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged
parent
d87a1107
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/python/ZLogger/syslogLogger.py
lib/python/ZLogger/syslogLogger.py
+6
-2
No files found.
lib/python/ZLogger/syslogLogger.py
View file @
9d0f1e90
...
...
@@ -85,7 +85,7 @@
from
syslog
import
syslog_client
,
LOG_ALERT
,
LOG_ERR
,
LOG_WARNING
,
LOG_NOTICE
from
syslog
import
LOG_INFO
,
LOG_DEBUG
import
os
,
string
import
os
,
string
,
traceback
pid_str
=
'[%s]: '
%
os
.
getpid
()
...
...
@@ -122,6 +122,10 @@ class syslogLogger:
sev
=
LOG_INFO
else
:
sev
=
LOG_DEBUG
if
err
:
try
:
sum
=
sum
+
' : '
+
traceback
.
format_exception_only
(
err
[
0
],
err
[
1
]
)[
0
]
except
:
pass
if
self
.
on
:
self
.
client
.
log
(
sub
+
pid_str
+
sum
,
priority
=
sev
)
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