Skip to content

Commit d2fd22f

Browse files
authored
docs: fixed variable name in ASGIMiddleware code example (#4151)
docs: fixed variable name in ASGIMiddleware code example (#4149)
1 parent dcfb674 commit d2fd22f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

litestar/middleware/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class MyMiddleware(ASGIMiddleware):
194194
exclude_opt_key = "exclude_my_middleware"
195195
196196
def __init__(self, my_logger: Logger) -> None:
197-
self.logger = logger
197+
self.logger = my_logger
198198
199199
async def handle(
200200
self, scope: Scope, receive: Receive, send: Send, next_app: ASGIApp

0 commit comments

Comments
 (0)