From 3cba05910bb9ec7fb8b4ea5ced734f0bfe9df88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Dudzi=C5=84ski?= Date: Sat, 2 May 2026 17:35:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A2=20Log=20client=20id=20and=20if=20i?= =?UTF-8?q?t=20was=20loaded=20from=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tiddl/core/auth/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tiddl/core/auth/client.py b/tiddl/core/auth/client.py index d85c3c9..78fddf6 100644 --- a/tiddl/core/auth/client.py +++ b/tiddl/core/auth/client.py @@ -1,10 +1,13 @@ import base64 +import logging from os import environ from requests import request from typing import Any, TypeAlias from tiddl.core.auth.exceptions import AuthClientError +log = logging.getLogger("tiddl") + def get_auth_credentials() -> tuple[str, str]: ENV_KEY = "TIDDL_AUTH" @@ -22,6 +25,8 @@ def get_auth_credentials() -> tuple[str, str]: if env_value: client_id, client_secret = env_value.split(";") + log.debug(f"{client_id=}, {bool(env_value)=}") + return client_id, client_secret