Skip to content

Commit ee088f8

Browse files
authored
Merge pull request #3 from aclark4life/main
Fixed missing dot and argument formatting in debug toolbar query logging
2 parents f59ffd0 + e66f47a commit ee088f8

File tree

1 file changed

+1
-1
lines changed
  • django_mongodb_extensions/debug_toolbar/panels/mql

1 file changed

+1
-1
lines changed

django_mongodb_extensions/debug_toolbar/panels/mql/tracking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class DebugToolbarWrapper(OperationDebugWrapper):
2626

2727
def __init__(self, db, collection, logger):
2828
super().__init__(db, collection)
29-
self.collection_name = collection.name
3029
self.logger = logger
3130

3231
def log(self, op, duration, args, kwargs=None):
32+
args = ", ".join(repr(arg) for arg in args)
3333
operation = f"db.{self.collection_name}{op}({args})"
3434
if self.logger:
3535
self.logger._queries.append(

0 commit comments

Comments
 (0)