Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions django_mongodb_extensions/debug_toolbar/panels/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .mql import MQLPanel

__all__ = ["MQLPanel"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import types
import uuid

from debug_toolbar.utils import get_stack_trace
from django_mongodb_backend.utils import OperationDebugWrapper
from pymongo.collection import Collection

Expand Down Expand Up @@ -38,6 +40,8 @@ def log(self, op, duration, args, kwargs=None):
"alias": self.db.alias,
"sql": operation,
"duration": "%.3f" % duration,
"djdt_query_id": uuid.uuid4().hex,
"stacktrace": get_stack_trace(),
}
)
self.logger._databases[self.db.alias] = {
Expand Down