From be2a36551dce0672ff9daf3cdbe9850927ce07c7 Mon Sep 17 00:00:00 2001 From: Andy Loftus Date: Wed, 10 Jan 2024 23:02:56 +0000 Subject: [PATCH] dump login error to logger --- jiracmdline/libjira.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jiracmdline/libjira.py b/jiracmdline/libjira.py index 214843e..6a1c723 100644 --- a/jiracmdline/libjira.py +++ b/jiracmdline/libjira.py @@ -41,9 +41,9 @@ def jira_login( token=None, username=None, passwd=None ): try: raw_connection = jira.JIRA( **params ) except jira.exceptions.JIRAError as e: + logr.debug( f"Caught error:\n{e}" ) if e.status_code != 401: raise e - # return jira_connection.Jira_Connection( raw_connection ) return raw_connection