aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-06-05 05:37:07 +0300
committerFrederick Muriuki Muriithi2023-06-05 05:37:07 +0300
commitaeb68d06bcea6435b8312c8bf6d59b2be9cb6dc9 (patch)
tree828d40ae7e4341087d529031dd39f22f1ab1e20f
parente5daa1af349c28840bdcc026b8f66065f19c8b1b (diff)
downloadgenenetwork3-aeb68d06bcea6435b8312c8bf6d59b2be9cb6dc9.tar.gz
Logging: Get info about python
This information is useful to assist with debugging issues within the guix containers.
-rw-r--r--gn3/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/app.py b/gn3/app.py
index b4b4b43..abc4e6b 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -1,5 +1,6 @@
"""Entry point from spinning up flask"""
import os
+import sys
from typing import Dict
from typing import Union
@@ -45,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"Python Executable: '{sys.executable}'.")
CORS(
app,