(requestLogMsg, responseLogMsg)
Logs HTTP traffic to the output file
Logs HTTP traffic to the output file
Logs HTTP traffic to the output file
def logHTTPTraffic(requestLogMsg, responseLogMsg):
    """
    Logs HTTP traffic to the output file
    """

    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 ) )