diff --git a/Framework/KubernetesWorkflow/LogHandler.cs b/Framework/KubernetesWorkflow/LogHandler.cs index f185ba1..1b7c61e 100644 --- a/Framework/KubernetesWorkflow/LogHandler.cs +++ b/Framework/KubernetesWorkflow/LogHandler.cs @@ -1,4 +1,5 @@ using Logging; +using Utils; namespace KubernetesWorkflow { @@ -40,6 +41,11 @@ namespace KubernetesWorkflow protected override void ProcessLine(string line) { + foreach (var replacement in BaseLog.replacements) + { + line = replacement.Apply(line); + } + LogFile.WriteRaw(line); } } diff --git a/Framework/Logging/BaseLog.cs b/Framework/Logging/BaseLog.cs index afae122..3ad8f05 100644 --- a/Framework/Logging/BaseLog.cs +++ b/Framework/Logging/BaseLog.cs @@ -16,7 +16,7 @@ namespace Logging public static bool EnableDebugLogging { get; set; } = false; private readonly NumberSource subfileNumberSource = new NumberSource(0); - private readonly List replacements = new List(); + public static List replacements = new List(); private LogFile? logFile; public BaseLog() diff --git a/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs b/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs index b7c86f6..52c4413 100644 --- a/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs +++ b/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs @@ -8,17 +8,18 @@ namespace CodexPlugin public class CodexContainerRecipe : ContainerRecipeFactory { private const string DefaultDockerImage = - //"codexstorage/nim-codex:0.1.7-dist-tests"; // => 20/20: 17 seconds 10/10: 3 seconds - //"codexstorage/nim-codex:sha-2a25460-dist-tests"; // PR => 20/20: 17 seconds - //"thatbenbierens/nim-codex:blockexcpr1"; // PR with revert of "Fixes issue where only wants of type block are stored in peerContext" => 20/20: 17 seconds - //"thatbenbierens/nim-codex:blockexprecreate"; // v0.1.7 with patch => 20/20: 19 seconds - //"thatbenbierens/nim-codex:blockexprecreate016"; // v0.1.6 with patch => 20/20: 19 seconds 10/10: 2 seconds - "thatbenbierens/nim-codex:blockexchprtinker7"; - //"thatbenbierens/nim-codex:blkexc9"; // wow-fast + //"codexstorage/nim-codex:0.1.7-dist-tests"; // => 20/20: 17 seconds 10/10: 3 seconds + //"codexstorage/nim-codex:sha-2a25460-dist-tests"; // PR => 20/20: 17 seconds + //"thatbenbierens/nim-codex:blockexcpr1"; // PR with revert of "Fixes issue where only wants of type block are stored in peerContext" => 20/20: 17 seconds + //"thatbenbierens/nim-codex:blockexprecreate"; // v0.1.7 with patch => 20/20: 19 seconds + //"thatbenbierens/nim-codex:blockexprecreate016"; // v0.1.6 with patch => 20/20: 19 seconds 10/10: 2 seconds + //"thatbenbierens/nim-codex:blockexchprtinker7"; + //"thatbenbierens/nim-codex:blkexc9"; // wow-fast + "thatbenbierens/nim-codex:asyncprofile5break"; // asynced trees. - blocks are stored, blocks are resolved - store-stream does not continue. node too busy??? + //blocks are stored, blocks are resolved + //store-stream does not continue. node too busy??? public const string ApiPortTag = "codex_api_port"; public const string ListenPortTag = "codex_listen_port";