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

Method setOutputFile

lib/core/dump.py:106–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104 pass
105
106 def setOutputFile(self):
107 if conf.noLogging:
108 self._outputFP = None
109 return
110
111 self._outputFile = os.path.join(conf.outputPath, "log")
112 try:
113 self._outputFP = openFile(self._outputFile, "ab" if not conf.flushSession else "wb")
114 except IOError as ex:
115 errMsg = "error occurred while opening log file ('%s')" % getSafeExString(ex)
116 raise SqlmapGenericException(errMsg)
117
118 def singleString(self, data, content_type=None):
119 self._write(data, content_type=content_type)

Callers 1

_configureDumperFunction · 0.80

Calls 3

openFileFunction · 0.90
getSafeExStringFunction · 0.90

Tested by

no test coverage detected