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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
a47622f2
Commit
a47622f2
authored
Jan 13, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/LongRequestLogger: supports python3
parent
478e177b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Type/patches/LongRequestLogger_dumper.py
product/ERP5Type/patches/LongRequestLogger_dumper.py
+2
-2
No files found.
product/ERP5Type/patches/LongRequestLogger_dumper.py
View file @
a47622f2
...
...
@@ -15,7 +15,7 @@ import traceback
from
six.moves
import
StringIO
from
six.moves._thread
import
get_ident
from
Products.ERP5Type.Utils
import
bytes2str
logger
=
logging
.
getLogger
(
'Products.LongRequestLogger'
)
...
...
@@ -60,7 +60,7 @@ class Dumper(object):
def
_extract_sql
(
self
,
frame
,
func_code
=
DB
.
_query
.
__code__
):
while
frame
is
not
None
:
if
frame
.
f_code
is
func_code
:
return
frame
.
f_locals
[
'query'
]
return
bytes2str
(
frame
.
f_locals
[
'query'
])
frame
=
frame
.
f_back
del
DB
...
...
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