Skip to content

Commit

Permalink
I think lamnda sets up the logging config for us...
Browse files Browse the repository at this point in the history
  • Loading branch information
jhkennedy committed Mar 4, 2024
1 parent 49af237 commit 4bd10a3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions landsat/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,6 @@ def lambda_handler(event: dict, context: object) -> None:
for record in event['Records']:
body = json.loads(record['body'])
message = json.loads(body['Message'])

level = logging.DEBUG if os.environ.get('LOGGING_LEVEL', 'INFO').upper() == 'DEBUG' else logging.INFO
logging.basicConfig(stream=sys.stdout, format='%(asctime)s - %(levelname)s - %(message)s', level=level)

_ = process_scene(message['landsat_product_id'])


Expand Down

0 comments on commit 4bd10a3

Please sign in to comment.