Closed
Description
The warning below appears in the Kokoro build log
> cloud_logger.warn(LOG_MESSAGE, extra=extra)
tests/system/test_system.py:608:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = , msg = 'Testing with injected extras.'
args = ()
kwargs = {'extra': {'http_request': {'requestUrl': 'localhost'}, 'labels': {'test-label': 'manual'}, 'resource': Resource(type='cloudiot_device', labels={}), 'source_location': {'file': 'test.py'}, ...}}
def warn(self, msg, *args, **kwargs):
> warnings.warn("The 'warn' method is deprecated, "
"use 'warning' instead", DeprecationWarning, 2)
E DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
/usr/local/lib/python3.8/logging/__init__.py:1461: DeprecationWarning
Metadata
Metadata
Assignees
Labels
Issues related to the googleapis/python-logging API.Issues related to the googleapis/python-logging API.An internal cleanup or hygiene concern.An internal cleanup or hygiene concern.