diff options
author | W. Trevor King <wking@tremily.us> | 2012-08-23 17:26:36 -0400 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2012-08-23 17:31:15 -0400 |
commit | 6b04e1f5b80abcc1dffbce0466f34a182a468064 (patch) | |
tree | 808b632318e2898b4d49ad29d93819ad7cbb27fb /misc/xml/be-mail-to-xml | |
parent | 831691bd9aa1ea4092f718fa5ce4da1ce96d06db (diff) | |
download | bugseverywhere-6b04e1f5b80abcc1dffbce0466f34a182a468064.tar.gz |
command:serve: add SilentRequestHandler to avoid double-logging requests.
They were being logged by the request handler, and then logged again
by WSGI_Object.log_request. After this patch, requests are only
logged when logger.level is at a <= level (e.g. closer to DEBUG)
than the WSGI_Object.log_level (usually INFO). For example, in
Serve_setup_logging,
self.logger.setLevel(logging.INFO)
will get request logs printed, but
self.logger.setLevel(logging.WARNING)
will not.
Diffstat (limited to 'misc/xml/be-mail-to-xml')
0 files changed, 0 insertions, 0 deletions