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

Commit 981737e

Browse filesBrowse files
andrewsgengelke
authored andcommitted
Fix deprecation warning (GoogleCloudPlatform#1801)
logging.warn -> logging.warning to fix "DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead"
1 parent cdab25b commit 981737e
Copy full SHA for 981737e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎logging/cloud-client/handler.py

Copy file name to clipboardExpand all lines: logging/cloud-client/handler.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def use_logging_handler():
3636
text = 'Hello, world!'
3737

3838
# Emits the data using the standard logging module
39-
logging.warn(text)
39+
logging.warning(text)
4040
# [END logging_handler_usage]
4141

4242
print('Logged: {}'.format(text))

0 commit comments

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