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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
e8e4eeb2
Commit
e8e4eeb2
authored
Sep 05, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! DeadlockDebugger: don't print "MySQL query: no query" when there is no query
parent
18c96931
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/DeadlockDebugger/dumper.py
product/DeadlockDebugger/dumper.py
+2
-2
No files found.
product/DeadlockDebugger/dumper.py
View file @
e8e4eeb2
...
...
@@ -69,7 +69,7 @@ def dump_threads():
while
f
is
not
None
:
code
=
f
.
f_code
if
code
is
DB
.
_query
.
func_code
:
mysql_info
=
"MySQL query:
\
n
%s
\
n
"
%
f
.
f_locals
[
'query'
]
mysql_info
=
"
\
n
MySQL query:
\
n
%s
\
n
"
%
f
.
f_locals
[
'query'
]
break
f
=
f
.
f_back
except
ImportError
:
...
...
@@ -77,7 +77,7 @@ def dump_threads():
output
=
StringIO
()
traceback
.
print_stack
(
frame
,
file
=
output
)
res
.
append
(
"Thread %s%s:
\
n
%s
\
n
%s"
%
res
.
append
(
"Thread %s%s:
\
n
%s%s"
%
(
thread_id
,
reqinfo
,
output
.
getvalue
(),
mysql_info
))
res
.
append
(
"End of dump
\
n
"
)
...
...
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