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
139
Merge Requests
139
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
0e98d933
Commit
0e98d933
authored
Jan 13, 2024
by
Jérome Perrin
Committed by
Arnaud Fontaine
Jul 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/LongRequestLogger: supports python3
parent
45d4180d
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 @
0e98d933
...
@@ -15,7 +15,7 @@ import traceback
...
@@ -15,7 +15,7 @@ import traceback
from
six.moves
import
StringIO
from
six.moves
import
StringIO
from
six.moves._thread
import
get_ident
from
six.moves._thread
import
get_ident
from
Products.ERP5Type.Utils
import
bytes2str
logger
=
logging
.
getLogger
(
'Products.LongRequestLogger'
)
logger
=
logging
.
getLogger
(
'Products.LongRequestLogger'
)
...
@@ -60,7 +60,7 @@ class Dumper(object):
...
@@ -60,7 +60,7 @@ class Dumper(object):
def
_extract_sql
(
self
,
frame
,
func_code
=
DB
.
_query
.
__code__
):
def
_extract_sql
(
self
,
frame
,
func_code
=
DB
.
_query
.
__code__
):
while
frame
is
not
None
:
while
frame
is
not
None
:
if
frame
.
f_code
is
func_code
:
if
frame
.
f_code
is
func_code
:
return
frame
.
f_locals
[
'query'
]
return
bytes2str
(
frame
.
f_locals
[
'query'
])
frame
=
frame
.
f_back
frame
=
frame
.
f_back
del
DB
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