From 51c42d5202fba81d8378950451300084fb2848c2 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Fri, 19 Apr 2024 18:37:30 +0200 Subject: [PATCH] Improve env handling a bit --- .env.example | 3 +++ config/emgauwa-controller.pkl | 2 +- config/emgauwa-core.pkl | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..91c7b95 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +#EMGAUWA_CONTROLLER_LOGGING_LEVEL=INFO + +#EMGAUWA_CORE_LOGGING_LEVEL=INFO \ No newline at end of file diff --git a/config/emgauwa-controller.pkl b/config/emgauwa-controller.pkl index 04d46bb..272d03a 100644 --- a/config/emgauwa-controller.pkl +++ b/config/emgauwa-controller.pkl @@ -13,7 +13,7 @@ permissions { } logging { - level = read?("env:LOGGING_LEVEL") ?? "DEBUG" + level = read?("env:EMGAUWA_CONTROLLER_LOGGING_LEVEL") ?? "DEBUG" file = "stdout" } diff --git a/config/emgauwa-core.pkl b/config/emgauwa-core.pkl index 188f01c..667b669 100644 --- a/config/emgauwa-core.pkl +++ b/config/emgauwa-core.pkl @@ -13,6 +13,6 @@ permissions { } logging { - level = read?("env:LOGGING_LEVEL") ?? "DEBUG" + level = read?("env:EMGAUWA_CORE_LOGGING_LEVEL") ?? "DEBUG" file = "stdout" }