def logHTTPTraffic(requestLogMsg, responseLogMsg):
 if (not conf.trafficFile):
  return
 with kb.locks.log:
  dataToTrafficFile(('%s%s' % (requestLogMsg, os.linesep)))
  dataToTrafficFile(('%s%s' % (responseLogMsg, os.linesep)))
  dataToTrafficFile(('%s%s%s%s' % (os.linesep, (76 * '#'), os.linesep, os.linesep)))

def logHTTPTraffic ( requestLogMsg , responseLogMsg ) : if ( not conf . trafficFile ) : return with kb . locks . log : dataToTrafficFile ( ( '%s%s' % ( requestLogMsg , os . linesep ) ) ) dataToTrafficFile ( ( '%s%s' % ( responseLogMsg , os . linesep ) ) ) dataToTrafficFile ( ( '%s%s%s%s' % ( os . linesep , ( 76 * '#' ) , os . linesep , os . linesep ) ) )
logs http traffic to the output file .