mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor fix (recognizing if it's colorizing handler or not)
This commit is contained in:
@@ -702,9 +702,10 @@ def setColor(message, bold=False):
|
||||
if level:
|
||||
kb.currentMessage = level
|
||||
|
||||
if hasattr(LOGGER_HANDLER, "level_map"): # colorizing handler
|
||||
if bold:
|
||||
retVal = colored(message, color=None, on_color=None, attrs=("bold",))
|
||||
elif hasattr(LOGGER_HANDLER, "level_map") and hasattr(kb, "currentMessage") and kb.currentMessage:
|
||||
elif hasattr(kb, "currentMessage") and kb.currentMessage:
|
||||
_ = LOGGER_HANDLER.level_map.get(logging.getLevelName(kb.currentMessage))
|
||||
|
||||
if _:
|
||||
|
||||
Reference in New Issue
Block a user