mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-03 07:43:52 +00:00
Shuts up json-serialization codex logging
This commit is contained in:
parent
266c661958
commit
0ec43a9325
@ -20,7 +20,7 @@ namespace KubernetesWorkflow.Types
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public string Name
|
public string Name
|
||||||
{
|
{
|
||||||
get { return $"{Containers.Length}x '{Containers.First().Name}'"; }
|
get { return $"'{string.Join("&", Containers.Select(c => c.Name).ToArray())}'"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Describe()
|
public string Describe()
|
||||||
|
@ -52,6 +52,7 @@ namespace CodexPlugin
|
|||||||
public CodexLogLevel Libp2p { get; set; }
|
public CodexLogLevel Libp2p { get; set; }
|
||||||
public CodexLogLevel ContractClock { get; set; } = CodexLogLevel.Warn;
|
public CodexLogLevel ContractClock { get; set; } = CodexLogLevel.Warn;
|
||||||
public CodexLogLevel? BlockExchange { get; }
|
public CodexLogLevel? BlockExchange { get; }
|
||||||
|
public CodexLogLevel JsonSerialize { get; set; } = CodexLogLevel.Warn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class CodexSetup : CodexStartupConfig, ICodexSetup
|
public class CodexSetup : CodexStartupConfig, ICodexSetup
|
||||||
|
@ -73,11 +73,18 @@ namespace CodexPlugin
|
|||||||
"contracts",
|
"contracts",
|
||||||
"clock"
|
"clock"
|
||||||
};
|
};
|
||||||
|
var jsonSerializeTopics = new[]
|
||||||
|
{
|
||||||
|
"serde",
|
||||||
|
"json",
|
||||||
|
"serialization"
|
||||||
|
};
|
||||||
|
|
||||||
level = $"{level};" +
|
level = $"{level};" +
|
||||||
$"{CustomTopics.DiscV5.ToString()!.ToLowerInvariant()}:{string.Join(",", discV5Topics)};" +
|
$"{CustomTopics.DiscV5.ToString()!.ToLowerInvariant()}:{string.Join(",", discV5Topics)};" +
|
||||||
$"{CustomTopics.Libp2p.ToString()!.ToLowerInvariant()}:{string.Join(",", libp2pTopics)};" +
|
$"{CustomTopics.Libp2p.ToString()!.ToLowerInvariant()}:{string.Join(",", libp2pTopics)};" +
|
||||||
$"{CustomTopics.ContractClock.ToString().ToLowerInvariant()}:{string.Join(",", contractClockTopics)}";
|
$"{CustomTopics.ContractClock.ToString().ToLowerInvariant()}:{string.Join(",", contractClockTopics)};" +
|
||||||
|
$"{CustomTopics.JsonSerialize.ToString().ToLowerInvariant()}:{string.Join(",", jsonSerializeTopics)}";
|
||||||
|
|
||||||
if (CustomTopics.BlockExchange != null)
|
if (CustomTopics.BlockExchange != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user