mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-09 17:51:33 +00:00
Fix for an Issue #129
This commit is contained in:
parent
bdbe8ff9d9
commit
142fc887f1
9 changed files with 105 additions and 95 deletions
4
thirdparty/ansistrm/ansistrm.py
vendored
4
thirdparty/ansistrm/ansistrm.py
vendored
|
|
@ -5,6 +5,8 @@ import logging
|
|||
import os
|
||||
import re
|
||||
|
||||
from lib.core.convert import stdoutencode
|
||||
|
||||
class ColorizingStreamHandler(logging.StreamHandler):
|
||||
# color names to indices
|
||||
color_map = {
|
||||
|
|
@ -45,7 +47,7 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
|||
|
||||
def emit(self, record):
|
||||
try:
|
||||
message = self.format(record)
|
||||
message = stdoutencode(self.format(record))
|
||||
stream = self.stream
|
||||
|
||||
if not self.is_tty:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue