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
e57001e1
Commit
e57001e1
authored
May 09, 2006
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SiteErrorLog only copied the unformatted traceback to the event.log,
missing out on __traceback_supplement__.
parent
a362d536
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/Products/SiteErrorLog/SiteErrorLog.py
lib/python/Products/SiteErrorLog/SiteErrorLog.py
+3
-3
No files found.
doc/CHANGES.txt
View file @
e57001e1
...
@@ -37,6 +37,9 @@ Zope Changes
...
@@ -37,6 +37,9 @@ Zope Changes
- OFS.PropertyManager: Provided missing security declarations.
- OFS.PropertyManager: Provided missing security declarations.
- Products.SiteErrorLog: SiteErrorLog only copied the unformatted
traceback to the event.log, missing out on __traceback_supplement__.
Zope 2.9.2 (2006/03/27)
Zope 2.9.2 (2006/03/27)
Bugs fixed
Bugs fixed
...
...
lib/python/Products/SiteErrorLog/SiteErrorLog.py
View file @
e57001e1
...
@@ -213,18 +213,18 @@ class SiteErrorLog (SimpleItem):
...
@@ -213,18 +213,18 @@ class SiteErrorLog (SimpleItem):
LOG
.
error
(
'Error while logging'
,
exc_info
=
sys
.
exc_info
())
LOG
.
error
(
'Error while logging'
,
exc_info
=
sys
.
exc_info
())
else
:
else
:
if
self
.
copy_to_zlog
:
if
self
.
copy_to_zlog
:
self
.
_do_copy_to_zlog
(
now
,
strtype
,
str
(
url
),
info
)
self
.
_do_copy_to_zlog
(
now
,
strtype
,
str
(
url
),
tb_text
)
return
'%s/showEntry?id=%s'
%
(
self
.
absolute_url
(),
entry_id
)
return
'%s/showEntry?id=%s'
%
(
self
.
absolute_url
(),
entry_id
)
finally
:
finally
:
info
=
None
info
=
None
def
_do_copy_to_zlog
(
self
,
now
,
strtype
,
url
,
info
):
def
_do_copy_to_zlog
(
self
,
now
,
strtype
,
url
,
tb_text
):
when
=
_rate_restrict_pool
.
get
(
strtype
,
0
)
when
=
_rate_restrict_pool
.
get
(
strtype
,
0
)
if
now
>
when
:
if
now
>
when
:
next_when
=
max
(
when
,
now
-
_rate_restrict_burst
*
_rate_restrict_period
)
next_when
=
max
(
when
,
now
-
_rate_restrict_burst
*
_rate_restrict_period
)
next_when
+=
_rate_restrict_period
next_when
+=
_rate_restrict_period
_rate_restrict_pool
[
strtype
]
=
next_when
_rate_restrict_pool
[
strtype
]
=
next_when
LOG
.
error
(
str
(
url
),
exc_info
=
info
)
LOG
.
error
(
'%s
\
n
%s'
%
(
url
,
tb_text
.
rstrip
())
)
security
.
declareProtected
(
use_error_logging
,
'getProperties'
)
security
.
declareProtected
(
use_error_logging
,
'getProperties'
)
def
getProperties
(
self
):
def
getProperties
(
self
):
...
...
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