[Bugfix] Runtime log level fix (#56)

* Added log level to runtime config

* Started comparing against an atom instead of a string
This commit is contained in:
Kieran 2024-03-07 11:26:20 -08:00 committed by GitHub
parent 6e195f6a6f
commit 1c65b41002
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ if config_env() == :prod do
metadata_path = System.get_env("METADATA_PATH", Path.join([config_path, "metadata"]))
# We want to force _some_ level of useful logging in production
acceptable_log_levels = ~w(debug info)
acceptable_log_levels = ~w(debug info)a
log_level = String.to_existing_atom(System.get_env("LOG_LEVEL", "info"))
if log_level in acceptable_log_levels do