Skip to content

Commit 0ff7e6d

Browse files
authored
Use logging.warning as logging.warn is deprecated. (envoyproxy#897)
n/nighthawk_test_server.py:198: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead [logging.warn("Process logged a warning: %s", w) for w in warnings] Signed-off-by: Kevin Baichoo <[email protected]>
1 parent 2f3a8a8 commit 0ff7e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/nighthawk_test_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def _serverThreadRunner(self):
195195
self._request.node.name,
196196
_TEST_SERVER_WARN_ERROR_IGNORE_LIST)
197197
if warnings:
198-
[logging.warn("Process logged a warning: %s", w) for w in warnings]
198+
[logging.warning("Process logged a warning: %s", w) for w in warnings]
199199
if errors:
200200
[logging.error("Process logged an error: %s", e) for e in errors]
201201

0 commit comments

Comments
 (0)