8000 `DeprecationWarning` in Kokoro build log `The 'warn' method is deprecated, use 'warning' instead` · Issue #820 · googleapis/python-logging · GitHub
[go: up one dir, main page]

Skip to content
DeprecationWarning in Kokoro build log The 'warn' method is deprecated, use 'warning' instead #820
Closed
@parthea

Description

@parthea

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

api: loggingIssues related to the googleapis/python-logging API.type: cleanupAn internal cleanup or hygiene concern.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0