Skip to content

Commit

Permalink
Fix for reviews.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlaine-hpe committed Jan 29, 2025
1 parent 18d0459 commit d000b37
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def load_boto3(_app):
def str_to_log_level(level:str) -> int:
# NOTE: we only have to do this until we upgrade to Flask:3.2 or later, then the
# _app.logger.setLevel will take the string version of the logging level
nameToLevel = {
name_to_level = {
'CRITICAL': logging.CRITICAL,
'FATAL': logging.FATAL,
'ERROR': logging.ERROR,
Expand All @@ -157,10 +157,10 @@ def str_to_log_level(level:str) -> int:
}

# default to INFO if something unexpected is here
retVal = nameToLevel.get(level)
if retVal is None:
retVal = logging.INFO
return retVal
ret_val = name_to_level.get(level)
if ret_val is None:
ret_val = logging.INFO
return ret_val

def create_app():
"""
Expand Down

0 comments on commit d000b37

Please sign in to comment.