Skip to content

Commit

Permalink
fix: tweak logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ebridges committed Sep 6, 2020
1 parent c2279bb commit 1d26bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mp/lambda_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def s3_handler(event, scope, context={}, force_update=False):
continue

with writer:
logging.info(f'checking if metadata for {key} exists in db')
exists_in_db = writer.exists(key.file_path)
logging.info(f'Data in db {exists_in_db}, force: {force_update}')
if not exists_in_db or (exists_in_db and force_update):
logging.info('going to extract and write metadata to db')
logging.info(f'Extracting and writing metadata to db for {key}')
result = lambda_common.write_metadata(key, writer)
if result:
logging.info(f'result: {result}')
Expand Down

0 comments on commit 1d26bb9

Please sign in to comment.