Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DeprecationWarning in Kokoro build log The 'warn' method is deprecated, use 'warning' instead #820

Copy link
Copy link
Closed
@parthea

Description

@parthea
Issue body actions

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.Issues related to the googleapis/python-logging API.type: cleanupAn internal cleanup or hygiene concern.An 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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.