From 6b8c6726fc058370986e766778c9bd193c78d9e2 Mon Sep 17 00:00:00 2001 From: Viren Baraiya Date: Mon, 1 Jan 2024 19:54:01 -0800 Subject: [PATCH] Update TokenHandler.cs --- Conductor/Client/Authentication/TokenHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Conductor/Client/Authentication/TokenHandler.cs b/Conductor/Client/Authentication/TokenHandler.cs index bdbc6869..eb15f895 100644 --- a/Conductor/Client/Authentication/TokenHandler.cs +++ b/Conductor/Client/Authentication/TokenHandler.cs @@ -48,9 +48,9 @@ private string GetTokenFromServer(OrkesAuthenticationSettings authenticationSett { return tokenClient.GenerateToken(tokenRequest)._token; } - catch (ApiException e) + catch (Exception e) { - Console.WriteLine($"Failed to refresh authentication token, reason: {e}, request: {tokenRequest.ToJson()}"); + Console.WriteLine($"Failed to refresh authentication token, attempt = {attempt}, reason: {e}, request: {tokenRequest.ToJson()}"); } } throw new Exception("Failed to refresh authentication token");