mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Bug fix (maybe it will have repercusions in future as this was a silent bug)
This commit is contained in:
parent
b7d4afcc63
commit
0cb3ce5765
|
@ -758,7 +758,7 @@ def setColor(message, bold=False):
|
|||
if bold:
|
||||
retVal = colored(message, color=None, on_color=None, attrs=("bold",))
|
||||
elif level:
|
||||
_ = LOGGER_HANDLER.level_map.get(logging.getLevelName(level))
|
||||
_ = LOGGER_HANDLER.level_map.get(level)
|
||||
if _:
|
||||
background, foreground, bold = _
|
||||
retVal = colored(message, color=foreground, on_color="on_%s" % background if background else None, attrs=("bold",) if bold else None)
|
||||
|
|
Loading…
Reference in New Issue
Block a user