From 114b86923a4b5272e15e083704eada79a751c7e4 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 9 Jul 2012 16:52:44 -0400 Subject: url_helper.py, cc_rightscale_userdata.py: reduce WARN to DEBUG cc_rightscale_userdata.py is likely to not be found, so its WARN was annoying in that it got to console output. The same is true of url_helper. Not all uses of readurl were fatal or justified to warn if the content was not there. --- cloudinit/config/cc_rightscale_userdata.py | 2 +- cloudinit/url_helper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cloudinit') diff --git a/cloudinit/config/cc_rightscale_userdata.py b/cloudinit/config/cc_rightscale_userdata.py index 7a134569..45d41b3f 100644 --- a/cloudinit/config/cc_rightscale_userdata.py +++ b/cloudinit/config/cc_rightscale_userdata.py @@ -53,7 +53,7 @@ def handle(name, _cfg, cloud, log, _args): try: ud = cloud.get_userdata_raw() except: - log.warn("Failed to get raw userdata in module %s", name) + log.debug("Failed to get raw userdata in module %s", name) return try: diff --git a/cloudinit/url_helper.py b/cloudinit/url_helper.py index dbf72392..732d6aec 100644 --- a/cloudinit/url_helper.py +++ b/cloudinit/url_helper.py @@ -127,7 +127,7 @@ def readurl(url, data=None, timeout=None, time.sleep(sec_between) # Didn't work out - LOG.warn("Failed reading from %s after %s attempts", url, attempts) + LOG.debug("Failed reading from %s after %s attempts", url, attempts) # It must of errored at least once for code # to get here so re-raise the last error -- cgit v1.2.3