Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fdd804

Browse files
committed
replaced instances of dataToStdout with logger
1 parent 9f47eb0 commit 1fdd804

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/techniques/error/use.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _oneShotErrorUse(expression, field=None):
5353

5454
if retVal and PARTIAL_VALUE_MARKER in retVal:
5555
partialValue = retVal = retVal.replace(PARTIAL_VALUE_MARKER, "")
56-
dataToStdout("[%s] [INFO] resuming partial value: '%s'\r\n" % (time.strftime("%X"), _formatPartialContent(partialValue)))
56+
logger.info("resuming partial value: '%s'" % _formatPartialContent(partialValue))
5757
offset += len(partialValue)
5858

5959
threadData.resumed = retVal is not None and not partialValue
@@ -185,7 +185,7 @@ def _errorFields(expression, expressionFields, expressionFieldsList, num=None, e
185185
if kb.fileReadMode and output and output.strip():
186186
print
187187
elif output is not None and not (threadData.resumed and kb.suppressResumeInfo) and not (emptyFields and field in emptyFields):
188-
dataToStdout("[%s] [INFO] %s: %s\r\n" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(output)))
188+
logger.info("%s: %s" % ("resumed" if threadData.resumed else "retrieved", safecharencode(output)))
189189

190190
if isinstance(num, int):
191191
expression = origExpr

0 commit comments

Comments
 (0)