log everything in this test

This commit is contained in:
Noah Levitt 2019-10-03 16:23:33 -07:00
parent 781a4d424d
commit c5279f3348

View File

@ -32,8 +32,16 @@ import requests
import subprocess
import http.server
import logging
import sys
import warcprox
logging.root.handlers = []
logging.basicConfig(
stream=sys.stderr, level=0, format=(
'%(asctime)s %(process)d %(levelname)s %(threadName)s '
'%(name)s.%(funcName)s(%(filename)s:%(lineno)d) %(message)s'))
logging.trace('hi')
# https://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib
def _local_address():
import socket