cosmetics

This commit is contained in:
Bernardo Damele 2013-01-29 17:00:28 +00:00
parent 1907c7c83a
commit e8bd3c9c9f
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,6 @@ class Dump(object):
""" """
This class defines methods used to parse and output the results This class defines methods used to parse and output the results
of SQL injection actions of SQL injection actions
""" """
def __init__(self): def __init__(self):

View File

@ -200,7 +200,8 @@ class LogRecorder(logging.StreamHandler):
communication with the parent process communication with the parent process
""" """
conf.database_cursor.execute("INSERT INTO logs VALUES(NULL, ?, ?, ?, ?)", conf.database_cursor.execute("INSERT INTO logs VALUES(NULL, ?, ?, ?, ?)",
(conf.taskid, time.strftime("%X"), record.levelname, record.msg % record.args if record.args else record.msg)) (conf.taskid, time.strftime("%X"), record.levelname,
record.msg % record.args if record.args else record.msg))
def setRestAPILog(): def setRestAPILog():
if hasattr(conf, "api"): if hasattr(conf, "api"):