diff options
author | Bruno Wagner <bwagner@riseup.net> | 2016-04-11 16:43:10 -0300 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-04-11 16:43:10 -0300 |
commit | e9776bd0524dca87f18fd366016b1236427d2518 (patch) | |
tree | 3b98333dfbe856c8df43774d7bb97b4b9e85d633 /service/pixelated/resources | |
parent | 3f9c038772f7fd4987e053c9188e260f5f55f07b (diff) |
Removed general timings from methods
I kept the logging functions so we can log times for tests
and to investigate issues, but I removed all usages of them
until someone needs them
Diffstat (limited to 'service/pixelated/resources')
-rw-r--r-- | service/pixelated/resources/__init__.py | 2 | ||||
-rw-r--r-- | service/pixelated/resources/mails_resource.py | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/service/pixelated/resources/__init__.py b/service/pixelated/resources/__init__.py index 77425cc5..02107364 100644 --- a/service/pixelated/resources/__init__.py +++ b/service/pixelated/resources/__init__.py @@ -22,7 +22,6 @@ from twisted.web.resource import Resource # from pixelated.resources.login_resource import LoginResource from pixelated.resources.session import IPixelatedSession -from pixelated.support import log_time from twisted.web.http import INTERNAL_SERVER_ERROR log = logging.getLogger(__name__) @@ -42,7 +41,6 @@ def respond_json(entity, request, status_code=200): return json_response -@log_time def respond_json_deferred(entity, request, status_code=200): json_response = json.dumps(entity, cls=SetEncoder) request.responseHeaders.addRawHeader(b"content-type", b"application/json") diff --git a/service/pixelated/resources/mails_resource.py b/service/pixelated/resources/mails_resource.py index c87d4ca2..0fcd7a12 100644 --- a/service/pixelated/resources/mails_resource.py +++ b/service/pixelated/resources/mails_resource.py @@ -11,7 +11,6 @@ from twisted.internet import defer from twisted.python.log import err from leap.common import events -from pixelated.support import log_time from pixelated.support.functional import to_unicode @@ -145,7 +144,6 @@ class MailsResource(BaseResource): if action == 'unread': return MailsUnreadResource(_mail_service) - @log_time def _build_mails_response(self, (mails, total)): return { "stats": { |