Less critical messages when something goes wrong with connection

This commit is contained in:
Miroslav Stampar 2015-09-27 16:36:20 +02:00
parent ef22f31fdf
commit 1fd6b007ab

View File

@ -621,7 +621,11 @@ class Connect(object):
return None, None, None return None, None, None
elif threadData.retriesCount < conf.retries and not kb.threadException: elif threadData.retriesCount < conf.retries and not kb.threadException:
warnMsg += ". sqlmap is going to retry the request" warnMsg += ". sqlmap is going to retry the request"
logger.critical(warnMsg) if not retrying:
warnMsg += "(s)"
logger.critical(warnMsg)
else:
logger.debug(warnMsg)
return Connect._retryProxy(**kwargs) return Connect._retryProxy(**kwargs)
elif kb.testMode: elif kb.testMode:
logger.critical(warnMsg) logger.critical(warnMsg)