From 1fd6b007ab0d3fd347c4d1f4642565ff892dcd2a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 27 Sep 2015 16:36:20 +0200 Subject: [PATCH] Less critical messages when something goes wrong with connection --- lib/request/connect.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 537a1cb64..b0d645264 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -621,7 +621,11 @@ class Connect(object): return None, None, None elif threadData.retriesCount < conf.retries and not kb.threadException: 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) elif kb.testMode: logger.critical(warnMsg)