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.
This commit is contained in:
@@ -53,7 +53,7 @@ def handle(name, _cfg, cloud, log, _args):
|
|||||||
try:
|
try:
|
||||||
ud = cloud.get_userdata_raw()
|
ud = cloud.get_userdata_raw()
|
||||||
except:
|
except:
|
||||||
log.warn("Failed to get raw userdata in module %s", name)
|
log.debug("Failed to get raw userdata in module %s", name)
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ def readurl(url, data=None, timeout=None,
|
|||||||
time.sleep(sec_between)
|
time.sleep(sec_between)
|
||||||
|
|
||||||
# Didn't work out
|
# 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
|
# It must of errored at least once for code
|
||||||
# to get here so re-raise the last error
|
# to get here so re-raise the last error
|
||||||
|
|||||||
Reference in New Issue
Block a user