diff options
author | Bruno Wagner <bwagner@riseup.net> | 2016-04-12 15:32:16 -0300 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-04-12 15:32:16 -0300 |
commit | 8c3be1c268626c3ae4eae2ec0fe5d6eadc7c340a (patch) | |
tree | f4739a0a3bf8fc8c7bd0885250d08cac2be0a5e0 | |
parent | 32a08a762bddbb21cadff6a75728c08f08b4bece (diff) |
Removed time logging from mails_resource
Removed the time logging, it can be put adhoc when
we want to test a specific case
-rw-r--r-- | service/pixelated/resources/mails_resource.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/service/pixelated/resources/mails_resource.py b/service/pixelated/resources/mails_resource.py index 0fcd7a12..dda3d4ba 100644 --- a/service/pixelated/resources/mails_resource.py +++ b/service/pixelated/resources/mails_resource.py @@ -153,12 +153,6 @@ class MailsResource(BaseResource): } def render_GET(self, request): - start = time.clock() - - def log_after_completion(result, start): - end = time.clock() - log.info('Needed %f ms to render response' % (end - start)) - return result _mail_service = self.mail_service(request) query, window_size, page = request.args.get('q')[0], request.args.get('w')[0], request.args.get('p')[0] @@ -167,7 +161,6 @@ class MailsResource(BaseResource): d.addCallback(self._build_mails_response) d.addCallback(lambda res: respond_json_deferred(res, request)) - d.addCallback(log_after_completion, start=start) def error_handler(error): print error |