From 75a459648608a3c63cc349c79d08775597c15b8f Mon Sep 17 00:00:00 2001 From: Zhe Lin Date: Tue, 17 Mar 2020 08:37:09 +0900 Subject: [PATCH] Use `logger.warning` instead of deprecated `warn` --- googleads/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/googleads/util.py b/googleads/util.py index b539c21c..10e07921 100644 --- a/googleads/util.py +++ b/googleads/util.py @@ -111,7 +111,7 @@ def ingress(self, envelope, http_headers, operation): if 'methodName' not in warn_data: warn_data['methodName'] = operation.name - self._logger.warn('Error summary: %s', warn_data) + self._logger.warning('Error summary: %s', warn_data) return envelope, http_headers