mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Adding traffic in and out to color_map
This commit is contained in:
parent
43cac2212b
commit
15ee5310d9
2 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue