From a26d38b74995872cfdb16aa84665ba8e0c8d3349 Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 1 Sep 2023 09:28:04 +0200 Subject: [PATCH] Moves container logs into log folder. --- ContinuousTests/SingleTestRun.cs | 4 +++- Logging/NullLog.cs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ContinuousTests/SingleTestRun.cs b/ContinuousTests/SingleTestRun.cs index ff66db19..1e2b3a44 100644 --- a/ContinuousTests/SingleTestRun.cs +++ b/ContinuousTests/SingleTestRun.cs @@ -142,7 +142,9 @@ namespace ContinuousTests private void DownloadClusterLogs() { var k8sFactory = new K8sFactory(); - var lifecycle = k8sFactory.CreateTestLifecycle(config.KubeConfigFile, config.LogPath, "dataPath", config.CodexDeployment.Metadata.KubeNamespace, new DefaultTimeSet(), new NullLog()); + var log = new NullLog(); + log.FullFilename = Path.Combine(config.LogPath, "NODE"); + var lifecycle = k8sFactory.CreateTestLifecycle(config.KubeConfigFile, config.LogPath, "dataPath", config.CodexDeployment.Metadata.KubeNamespace, new DefaultTimeSet(), log); foreach (var container in config.CodexDeployment.CodexContainers) { diff --git a/Logging/NullLog.cs b/Logging/NullLog.cs index 06113b16..75d43ff6 100644 --- a/Logging/NullLog.cs +++ b/Logging/NullLog.cs @@ -6,9 +6,11 @@ { } + public string FullFilename { get; set; } = "NULL"; + protected override string GetFullName() { - return "NULL"; + return FullFilename; } public override void Log(string message)