From c5ecdb5403c8a9f65a20d1bf2f13ff08e88b8033 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 25 Feb 2016 01:20:48 +0100 Subject: [PATCH] Minor update related to the Issue #1730 --- lib/utils/hashdb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils/hashdb.py b/lib/utils/hashdb.py index 972dc7c17..44c1987fb 100644 --- a/lib/utils/hashdb.py +++ b/lib/utils/hashdb.py @@ -14,6 +14,7 @@ import time from lib.core.common import getSafeExString from lib.core.common import getUnicode from lib.core.common import serializeObject +from lib.core.common import singleTimeWarnMessage from lib.core.common import unserializeObject from lib.core.data import logger from lib.core.exception import SqlmapDataException @@ -83,8 +84,8 @@ class HashDB(object): if not any(_ in getSafeExString(ex) for _ in ("locked", "no such table")): raise else: - debugMsg = "problem occurred while accessing session file '%s' ('%s')" % (self.filepath, getSafeExString(ex)) - logger.debug(debugMsg) + warnMsg = "problem occurred while accessing session file '%s' ('%s')" % (self.filepath, getSafeExString(ex)) + singleTimeWarnMessage(warnMsg) except sqlite3.DatabaseError, ex: errMsg = "error occurred while accessing session file '%s' ('%s'). " % (self.filepath, getSafeExString(ex)) errMsg += "If the problem persists please rerun with `--flush-session`"