From b7beeaf9eb5f375677c7be594a597534bd6bf2af Mon Sep 17 00:00:00 2001 From: Kieran Date: Thu, 7 Mar 2024 18:26:20 -0800 Subject: [PATCH] [Bugfix] Runtime log level fix (#56) * Added log level to runtime config * Started comparing against an atom instead of a string --- config/runtime.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index bce3d26..9b8585f 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -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