Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
change loggings
Browse files Browse the repository at this point in the history
  • Loading branch information
lzheng committed Nov 12, 2010
1 parent 3f5d9b4 commit bdd52a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/server.py
Expand Up @@ -98,10 +98,6 @@

from error import ERR_HTTP_VERSION, ERR_HOST_REQ, ERR_WHITESPACE_HDR, ERR_TRANSFER_CODE

logging.basicConfig()
log = logging.getLogger('server')
log.setLevel(logging.WARNING)

# FIXME: assure that the connection isn't closed before reading the entire req body
# TODO: filter out 100 responses to HTTP/1.0 clients that didn't ask for it.

Expand Down Expand Up @@ -274,6 +270,9 @@ def test_handler(method, uri, hdrs, res_start, req_pause):
return dummy, dummy

if __name__ == "__main__":
logging.basicConfig()
log = logging.getLogger('server')
log.setLevel(logging.WARNING)
sys.stderr.write("PID: %s\n" % os.getpid())
h, p = '127.0.0.1', int(sys.argv[1])
server = Server(h, p, test_handler)
Expand Down
4 changes: 0 additions & 4 deletions src/spdy_server.py
Expand Up @@ -93,10 +93,6 @@
from spdy_common import SpdyMessageHandler, CTL_SYN_REPLY, FLAG_NONE, FLAG_FIN
from http_common import get_hdr, dummy

logging.basicConfig()
log = logging.getLogger('server')
log.setLevel(logging.INFO)

# FIXME: assure that the connection isn't closed before reading the entire req body

class SpdyServer:
Expand Down

0 comments on commit bdd52a5

Please sign in to comment.