From 84c2cc5f41a53997487d11fba7eac6c8af22ad2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20B=C3=B6ttcher?= <c.boettcher@fz-juelich.de>
Date: Mon, 6 Mar 2023 14:21:01 +0100
Subject: [PATCH] get log to show up where needed

---
 plugins/unity_integration.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/unity_integration.py b/plugins/unity_integration.py
index 8f3a942..621b355 100644
--- a/plugins/unity_integration.py
+++ b/plugins/unity_integration.py
@@ -6,7 +6,7 @@ from flask_appbuilder import BaseView as AppBuilderBaseView
 from airflow.plugins_manager import AirflowPlugin
 
 log = logging.getLogger(__name__)
-log.setLevel(os.getenv("AIRFLOW__LOGGING__FAB_LOGGING_LEVEL", "INFO"))
+log.setLevel("DEBUG")
 
 FAB_ADMIN_ROLE = "Admin"
 FAB_VIEWER_ROLE = "Viewer"
@@ -32,7 +32,7 @@ class UnityIntegrationView(AppBuilderBaseView):
     @unity.route('/login')
     def login():
         redirect_uri = url_for('.authorize', _external=True)
-        log.debug("Redirect uri is " + str(redirect_uri))
+        log.debug("Redirect uri is '" + str(redirect_uri) + "'")
         return oauth.unity.authorize_redirect(redirect_uri)
     
     @unity.route('/authorize')
-- 
GitLab