(self)
| 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) |
no test coverage detected