Skip to content

Commit 1c86a87

Browse files
committed
fixed route function showing up in logs instead of controller class name
1 parent a0acd6a commit 1c86a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ninja_extra/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _log_action(
4545
)
4646
msg = (
4747
f'"{request.method.upper() if request.method else "METHOD NOT FOUND"} - '
48-
f'{route_function.__class__.__name__}[{self.view_func.__name__}] {request.path}" '
48+
f'{route_function.controller.__class__.__name__}[{self.view_func.__name__}] {request.path}" '
4949
f"{duration if duration else str(ex)}"
5050
)
5151
logger(msg, **kwargs)

0 commit comments

Comments
 (0)