Skip to content

Commit ff7792b

Browse files
committed
address PR feedback
1 parent a42c5ac commit ff7792b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

google/api_core/client_logging.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
_LOGGING_INITIALIZED = False
77
_BASE_LOGGER_NAME = "google"
88
# TODO(https://github.com/googleapis/python-api-core/issues/760): Update Request / Response messages.
9-
REQUEST_MESSAGE = "Sending request ..."
10-
RESPONSE_MESSAGE = "Receiving response ..."
9+
REQUEST_MESSAGE = "Sending request "
10+
RESPONSE_MESSAGE = "Receiving response "
1111

1212
# TODO(https://github.com/googleapis/python-api-core/issues/761): Update this list to support additional logging fields
1313
_recognized_logging_fields = ["httpRequest", "rpcName", "serviceName"] # Additional fields to be Logged.
@@ -55,7 +55,6 @@ def setup_logging(scopes=[]):
5555
configure_defaults(logger)
5656

5757
# disable log propagation at base logger level to the root logger only if a base logger is not already configured via code changes.
58-
# Maybe we do this at the end?
5958
base_logger = logging.getLogger(_BASE_LOGGER_NAME)
6059
if not logger_configured(base_logger):
6160
base_logger.propagate = False

tests/unit/test_client_logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ def test_setup_logging_w_incorrect_scope():
5555
assert base_logger.propagate == False
5656
assert base_logger.level == logging.NOTSET
5757

58-
# TODO: update test once we add logic to ignore an incorrect scope.
58+
# TODO(https://github.com/googleapis/python-api-core/issues/759): update test once we add logic to ignore an incorrect scope.
5959
logger = logging.getLogger("foo")
6060
assert isinstance(logger.handlers[0], logging.StreamHandler)
6161
assert logger.propagate == False
6262
assert logger.level == logging.DEBUG
6363

6464
reset_logger("google")
65+
reset_logger("foo")

0 commit comments

Comments
 (0)