From ca350604e35614637000ad0079d8a406fc879961 Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 13 Nov 2023 15:11:49 +0100 Subject: [PATCH] Debugging nodeport --- Framework/KubernetesWorkflow/StartupWorkflow.cs | 4 ++-- Framework/Logging/BaseLog.cs | 4 +++- Framework/Logging/NullLog.cs | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Framework/KubernetesWorkflow/StartupWorkflow.cs b/Framework/KubernetesWorkflow/StartupWorkflow.cs index 20ab753..49bc764 100644 --- a/Framework/KubernetesWorkflow/StartupWorkflow.cs +++ b/Framework/KubernetesWorkflow/StartupWorkflow.cs @@ -222,7 +222,7 @@ namespace KubernetesWorkflow } catch (k8s.Autorest.HttpOperationException ex) { - log.Error(JsonConvert.SerializeObject(ex)); + log.Error(JsonConvert.SerializeObject(ex.Response)); throw; } } @@ -238,7 +238,7 @@ namespace KubernetesWorkflow } catch (k8s.Autorest.HttpOperationException ex) { - log.Error(JsonConvert.SerializeObject(ex)); + log.Error(JsonConvert.SerializeObject(ex.Response)); throw; } } diff --git a/Framework/Logging/BaseLog.cs b/Framework/Logging/BaseLog.cs index bb5df83..cc323a8 100644 --- a/Framework/Logging/BaseLog.cs +++ b/Framework/Logging/BaseLog.cs @@ -55,7 +55,9 @@ namespace Logging public virtual void Error(string message) { - Log($"[ERROR] {message}"); + var msg = $"[ERROR] {message}"; + Console.WriteLine(msg); + Log(msg); } public virtual void AddStringReplace(string from, string to) diff --git a/Framework/Logging/NullLog.cs b/Framework/Logging/NullLog.cs index fb7a70e..a9cf8d2 100644 --- a/Framework/Logging/NullLog.cs +++ b/Framework/Logging/NullLog.cs @@ -16,6 +16,7 @@ public override void Error(string message) { + Console.WriteLine("Error: " + message); base.Error(message); }