replaced unnecessary dataToStdout() call with appropriate logger.info() call

This commit is contained in:
Bernardo Damele 2012-12-17 11:30:08 +00:00
parent 2926c815bf
commit 064d443d60

View File

@ -69,9 +69,12 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
if retVal: if retVal:
partialValue = retVal partialValue = retVal
dataToStdout("[%s] [INFO] resuming partial value: '%s'\r\n" % (time.strftime("%X"), safecharencode(partialValue))) infoMsg = "resuming partial value: %s" % safecharencode(partialValue)
logger.info(infoMsg)
else: else:
dataToStdout("[%s] [INFO] resumed: %s\r\n" % (time.strftime("%X"), safecharencode(retVal))) infoMsg = "resumed: %s" % safecharencode(retVal)
logger.info(infoMsg)
return 0, retVal return 0, retVal
try: try: