mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Fixes #2471
This commit is contained in:
@@ -282,7 +282,7 @@ class LogRecorder(logging.StreamHandler):
|
||||
|
||||
|
||||
def setRestAPILog():
|
||||
if hasattr(conf, "api"):
|
||||
if conf.api:
|
||||
try:
|
||||
conf.databaseCursor = Database(conf.database)
|
||||
conf.databaseCursor.connect("client")
|
||||
|
||||
Reference in New Issue
Block a user