From e9776bd0524dca87f18fd366016b1236427d2518 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Mon, 11 Apr 2016 16:43:10 -0300 Subject: 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 --- service/pixelated/resources/__init__.py | 2 -- service/pixelated/resources/mails_resource.py | 2 -- 2 files changed, 4 deletions(-) (limited to 'service/pixelated/resources') 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": { -- cgit v1.2.3