Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit ccb2846

Browse files
Merge pull request #54 from PeRDy/fix-53
Fixes #53 Reformat debug log for queries
2 parents cafa77d + e5f9336 commit ccb2846

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

databases/backends/mysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def _compile(
169169
compiled._textual_ordered_columns,
170170
)
171171

172-
logger.debug(compiled.string, args)
172+
logger.debug("Query: %s\nArgs: %s", compiled.string, args)
173173
return compiled.string, args, CompilationContext(execution_context)
174174

175175

databases/backends/postgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def _compile(self, query: ClauseElement) -> typing.Tuple[str, list, tuple]:
168168
for key, val in compiled_params
169169
]
170170

171-
logger.debug(compiled_query, args)
171+
logger.debug("Query: %s\nArgs: %s", compiled_query, args)
172172
return compiled_query, args, compiled._result_columns
173173

174174

databases/backends/sqlite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _compile(
150150
compiled._textual_ordered_columns,
151151
)
152152

153-
logger.debug(compiled.string, args)
153+
logger.debug("Query: %s\nArgs: %s", compiled.string, args)
154154
return compiled.string, args, CompilationContext(execution_context)
155155

156156

0 commit comments

Comments
 (0)