Debugging nodeport

This commit is contained in:
benbierens 2023-11-13 15:11:49 +01:00
parent 5a7608460b
commit ca350604e3
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
3 changed files with 6 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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)

View File

@ -16,6 +16,7 @@
public override void Error(string message)
{
Console.WriteLine("Error: " + message);
base.Error(message);
}