Skip to content
Snippets Groups Projects
Commit 8dfcbfb2 authored by David Trattnig's avatar David Trattnig
Browse files

refact: custom config loc for aura#132

parent d24b259b
Branches
Tags
No related merge requests found
Pipeline #2826 passed
......@@ -38,6 +38,8 @@ config_file = None
for arg in sys.argv:
if arg.startswith("config="):
config_file = arg.split("config=")[1]
if not config_file:
config_file = "/etc/aura/engine-api.ini"
# App Initialization
......
......@@ -58,7 +58,8 @@ class AuraConfig:
ini_path = default_ini_path
self.ini_path = ini_path
self.logger = logging.getLogger("AuraEngineApi")
print(f"Using configuration at '{ini_path}'")
self.logger = logging.getLogger("engine-api")
self.load_config()
def set(self, key, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment