From aafac8f69bce259dd86832016857dd6651c61ebc Mon Sep 17 00:00:00 2001 From: Raymond Zhou <56318341+rayzhou-bit@users.noreply.github.com> Date: Mon, 22 Aug 2022 16:51:53 -0400 Subject: [PATCH] Revert "feat: TNL-10051 blockstore API perf instrumentation" (#30885) --- openedx/core/lib/blockstore_api/methods.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/openedx/core/lib/blockstore_api/methods.py b/openedx/core/lib/blockstore_api/methods.py index 1f930e5f32..7d7c65decd 100644 --- a/openedx/core/lib/blockstore_api/methods.py +++ b/openedx/core/lib/blockstore_api/methods.py @@ -3,7 +3,6 @@ API Client methods for working with Blockstore bundles and drafts """ import base64 -import logging from functools import wraps from urllib.parse import urlencode from uuid import UUID @@ -35,8 +34,6 @@ import blockstore.apps.api.methods as blockstore_api_methods from .config import use_blockstore_app -log = logging.getLogger(__name__) - def toggle_blockstore_api(func): """ @@ -47,11 +44,7 @@ def toggle_blockstore_api(func): def wrapper(*args, **kwargs): if use_blockstore_app(): return getattr(blockstore_api_methods, func.__name__)(*args, **kwargs) - joined_args = " " - log.Info('blockstore ' + func.__name__ + ' API call called with ' + joined_args.join(args) + ' arguments') - ret_object = func(*args, **kwargs) - log.Info('blockstore ' + func.__name__ + ' API call is done') - return ret_object + return func(*args, **kwargs) return wrapper