From aeb68d06bcea6435b8312c8bf6d59b2be9cb6dc9 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 5 Jun 2023 05:37:07 +0300 Subject: Logging: Get info about python This information is useful to assist with debugging issues within the guix containers. --- gn3/app.py | 2 ++ 1 file changed, 2 insertions(+) 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, -- cgit v1.2.3