MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / emit

Method emit

lib/utils/api.py:274–279  ·  view source on GitHub ↗

Record emitted events to IPC database for asynchronous I/O communication with the parent process

(self, record)

Source from the content-addressed store, hash-verified

272
273class LogRecorder(logging.StreamHandler):
274 def emit(self, record):
275 """
276 Record emitted events to IPC database for asynchronous I/O
277 communication with the parent process
278 """
279 conf.databaseCursor.execute("INSERT INTO logs VALUES(NULL, ?, ?, ?, ?)", (conf.taskid, time.strftime("%X"), record.levelname, str(record.msg % record.args if record.args else record.msg)))
280
281def setRestAPILog():
282 if conf.api:

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected