Skip to content

Commit

Permalink
Merge pull request #387 from ilndinesh/master
Browse files Browse the repository at this point in the history
traceback only when needed
  • Loading branch information
SebCorbin authored Nov 19, 2022
2 parents 1fd2c4f + fafc178 commit 5677fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silk/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def execute_sql(self, *args, **kwargs):
return iter([])
else:
return
tb = ''.join(reversed(traceback.format_stack()))
sql_query = q % tuple(force_str(param) for param in params)
if _should_wrap(sql_query):
tb = ''.join(reversed(traceback.format_stack()))
query_dict = {
'query': sql_query,
'start_time': timezone.now(),
Expand Down

0 comments on commit 5677fa8

Please sign in to comment.