Skip to content
Merged
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,13 @@ class LoggingInterceptor:
"""Implements the MetadataInterceptor protocol."""

async def on_start(self, ctx: RequestContext) -> None:
print(f"Handling {ctx.method.name} request")
print(f"Handling {ctx.method().name} request")

async def on_end(self, token: None, ctx: RequestContext, error: Exception | None) -> None:
if error:
print(f"Failed {ctx.method.name}: {error}")
print(f"Failed {ctx.method().name}: {error}")
else:
print(f"Completed {ctx.method.name} request")
print(f"Completed {ctx.method().name} request")

# Add to your application
app = HelloServiceASGIApplication(
Expand Down
Loading