[bitbake-devel] [PATCH] fetch2/__init__.py: replace stray logger.warn() with logger.warning()
Andre McCurdy
armccurdy at gmail.com
Tue Jul 25 21:30:01 UTC 2017
Update stray usage of deprecated logger.warn(), which was introduced
to fetch2/__init__.py after all other instances had been replaced by
logger.warning():
http://git.openembedded.org/bitbake/commit/?id=5a53e7d7b017769a6eb0f0a6335735a1fe51a5ec
http://git.openembedded.org/bitbake/commit/?id=676a5f592e8507e81b8f748d58acfea7572f8796
Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
---
lib/bb/fetch2/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 74ba37f..a78279c 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -1033,7 +1033,7 @@ def try_mirror_url(fetch, origud, ud, ld, check = False):
except IOError as e:
if e.errno in [os.errno.ESTALE]:
- logger.warn("Stale Error Observed %s." % ud.url)
+ logger.warning("Stale Error Observed %s." % ud.url)
return False
raise
--
1.9.1
More information about the bitbake-devel
mailing list