Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
Adjust handler logging setup variable names to appease the mypy hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonnnj committed Mar 6, 2020
1 parent b04c093 commit c6093a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lambda_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
# and
# https://stackoverflow.com/questions/37703609/using-python-logging-with-aws-lambda
# for more details.
root = logging.getLogger()
if root.handlers:
for handler in root.handlers:
root.removeHandler(handler)
logging_root = logging.getLogger()
if logging_root.handlers:
for logging_handler in logging_root.handlers:
logging_root.removeHandler(logging_handler)


def handler(event, context):
Expand Down

0 comments on commit c6093a2

Please sign in to comment.