[oonib/master] Only print request payload if log level is set to debug

commit 7ff1aaea9cd5a06ff2e036a396a596590861f801 Author: Arturo Filastò <art@fuffa.org> Date: Sat Jun 8 15:59:31 2013 +0200 Only print request payload if log level is set to debug --- oonib.conf.example | 2 +- oonib/report/file_collector.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oonib.conf.example b/oonib.conf.example index 694296f..b6924f1 100644 --- a/oonib.conf.example +++ b/oonib.conf.example @@ -20,7 +20,7 @@ main: uuid: Null no_save: true profile: Null - debug: Null + debug: false stale_time: 3600 helpers: diff --git a/oonib/report/file_collector.py b/oonib/report/file_collector.py index 193f7fd..dab913b 100644 --- a/oonib/report/file_collector.py +++ b/oonib/report/file_collector.py @@ -189,7 +189,7 @@ class NewReportHandlerFile(web.RequestHandler): report_id = parsed_request['report_id'] - print "Got this request %s" % parsed_request + log.debug("Got this request %s" % parsed_request) report_filename = os.path.join(config.main.report_dir, report_id)
participants (1)
-
art@torproject.org