aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-06-05 05:51:02 +0300
committerFrederick Muriuki Muriithi2023-06-05 05:51:02 +0300
commit439eb22f75c402bc91efb8cd37cb4e67f2fc09ca (patch)
treebdc6d1209baeddbbda378b111e2001c9f48c79f4
parentaeb68d06bcea6435b8312c8bf6d59b2be9cb6dc9 (diff)
downloadgenenetwork3-439eb22f75c402bc91efb8cd37cb4e67f2fc09ca.tar.gz
Logging: Get guix profile information if present.
Useful for debugging issues within the guix containers.
-rw-r--r--gn3/app.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn3/app.py b/gn3/app.py
index abc4e6b..b55b6ff 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -46,6 +46,7 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask:
# DO NOT log anything before this point
setup_app_handlers(app)
+ app.logger.info(f"Guix Profile: {os.environ.get('GUIX_PROFILE')}.")
app.logger.info(f"Python Executable: '{sys.executable}'.")
CORS(