mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Adding traffic in and out to color_map
This commit is contained in:
@@ -700,7 +700,7 @@ def setColor(message, bold=False):
|
||||
level = extractRegexResult(r"\A\s*\[(?P<result>[A-Z ]+)\]", message)
|
||||
|
||||
if hasattr(LOGGER_HANDLER, "level_map"):
|
||||
_ = LOGGER_HANDLER.level_map.get(logging._levelNames.get(level))
|
||||
_ = LOGGER_HANDLER.level_map.get(logging.getLevelName(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)
|
||||
|
||||
Reference in New Issue
Block a user