Skip to content

Commit 6dae478

Browse files
committed
Merge branch 'feature/log-downloads' into develop
[SVCS-541] Closes: #285
2 parents 9c04bf9 + ed9c88d commit 6dae478

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

waterbutler/core/remote_logging.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
@utils.async_retry(retries=5, backoff=5)
2020
async def log_to_callback(action, source=None, destination=None, start_time=None, errors=[]):
2121
"""PUT a logging payload back to the callback given by the auth provider."""
22-
if action in ('download_file', 'download_zip'):
23-
logger.debug('Not logging for {} action'.format(action))
24-
return
2522

2623
auth = getattr(destination, 'auth', source.auth)
2724
log_payload = {
@@ -41,10 +38,6 @@ async def log_to_callback(action, source=None, destination=None, start_time=None
4138
log_payload['metadata'] = source.serialize()
4239
log_payload['provider'] = log_payload['metadata']['provider']
4340

44-
if action in ('download_file', 'download_zip'):
45-
logger.info('Not logging for {} action'.format(action))
46-
return
47-
4841
resp = await utils.send_signed_request('PUT', auth['callback_url'], log_payload)
4942
resp_data = await resp.read()
5043

0 commit comments

Comments
 (0)