Skip to content

Commit 32862f0

Browse files
authored
docs(logging): fix StructuredLogHandler docstring parameter name (#17625)
## Summary - Update the `StructuredLogHandler` docstring to use `project_id` instead of `project`. - This matches the actual constructor parameter. Fixes #17604
1 parent d68c11d commit 32862f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/google-cloud-logging/google/cloud/logging_v2/handlers/structured_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(
7777
Args:
7878
labels (Optional[dict]): Additional labels to attach to logs.
7979
stream (Optional[IO]): Stream to be used by the handler.
80-
project (Optional[str]): Project Id associated with the logs.
80+
project_id (Optional[str]): Project Id associated with the logs.
8181
json_encoder_cls (Optional[Type[JSONEncoder]]): Custom JSON encoder. Defaults to json.JSONEncoder
8282
"""
8383
super(StructuredLogHandler, self).__init__(stream=stream)

0 commit comments

Comments
 (0)