File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments