Skip to content

Commit

Permalink
Tweak the bool evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz committed Apr 30, 2020
1 parent 93e6885 commit bb9cf94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _configure_watchtower_logging_handler():
aws_region_name = os.getenv("AWS_REGION_NAME", None)
log_group = os.getenv("AWS_LOG_GROUP", "platform")
stream_name = os.getenv("AWS_LOG_STREAM", _get_hostname()) # default to hostname
create_log_group = str(os.getenv("AWS_CREATE_LOG_GROUP")) in ["True", "true"]
create_log_group = str(os.getenv("AWS_CREATE_LOG_GROUP")).lower() == "true"

if all([aws_access_key_id, aws_secret_access_key, aws_region_name, stream_name]):
print(f"Configuring watchtower logging (log_group={log_group}, stream_name={stream_name})")
Expand Down

0 comments on commit bb9cf94

Please sign in to comment.