From a6ef70fc096e034da2c72a76bd6081f1fe3e338c Mon Sep 17 00:00:00 2001 From: Hassieb Pakzad <68423100+hassiebp@users.noreply.github.com> Date: Thu, 10 Oct 2024 09:13:26 -0700 Subject: [PATCH] fix(decorators): stack trace on failed auth_check (#961) --- langfuse/decorators/langfuse_decorator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/langfuse/decorators/langfuse_decorator.py b/langfuse/decorators/langfuse_decorator.py index 837b6675..8b91e6a4 100644 --- a/langfuse/decorators/langfuse_decorator.py +++ b/langfuse/decorators/langfuse_decorator.py @@ -1110,7 +1110,9 @@ def auth_check(self) -> bool: try: return self.client_instance.auth_check() except Exception as e: - self._log.error("No Langfuse object found in the current context", e) + self._log.error( + "No Langfuse object found in the current context", exc_info=e + ) return False