From ef634a19461c8a3e097f92a4a4ecab1162cb949e Mon Sep 17 00:00:00 2001 From: Addison Schiller Date: Mon, 16 Oct 2017 13:54:02 -0400 Subject: [PATCH] Allow WB to log download_file/zip --- waterbutler/core/remote_logging.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/waterbutler/core/remote_logging.py b/waterbutler/core/remote_logging.py index 0b70b65a4..2045c8161 100644 --- a/waterbutler/core/remote_logging.py +++ b/waterbutler/core/remote_logging.py @@ -19,9 +19,6 @@ @utils.async_retry(retries=5, backoff=5) async def log_to_callback(action, source=None, destination=None, start_time=None, errors=[]): """PUT a logging payload back to the callback given by the auth provider.""" - if action in ('download_file', 'download_zip'): - logger.debug('Not logging for {} action'.format(action)) - return auth = getattr(destination, 'auth', source.auth) log_payload = { @@ -41,10 +38,6 @@ async def log_to_callback(action, source=None, destination=None, start_time=None log_payload['metadata'] = source.serialize() log_payload['provider'] = log_payload['metadata']['provider'] - if action in ('download_file', 'download_zip'): - logger.info('Not logging for {} action'.format(action)) - return - resp = await utils.send_signed_request('PUT', auth['callback_url'], log_payload) resp_data = await resp.read()