Skip to content

Commit 789852b

Browse files
committed
Updates api. sets marketplace-infra log level
1 parent 5c56e47 commit 789852b

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

ProjectPlugins/CodexClient/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ components:
325325
- unknown
326326
error:
327327
type: string
328+
nullable: true
328329
description: If Request failed, then here is presented the error message
329330
request:
330331
$ref: "#/components/schemas/StorageRequest"

ProjectPlugins/CodexPlugin/ApiChecker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CodexPlugin
1010
public class ApiChecker
1111
{
1212
// <INSERT-OPENAPI-YAML-HASH>
13-
private const string OpenApiYamlHash = "69-7C-8A-AC-87-6E-E2-D1-C4-C2-7B-C7-79-6F-15-03-38-5B-18-3D-40-7D-33-A6-62-7B-33-55-0A-4D-64-8B";
13+
private const string OpenApiYamlHash = "00-7D-C3-0B-D2-23-D6-6C-CA-C2-43-D0-9B-B4-63-FC-4F-FE-23-9F-B8-82-5F-3B-3F-6B-4F-1F-11-E9-48-16";
1414
private const string OpenApiFilePath = "/codex/openapi.yaml";
1515
private const string DisableEnvironmentVariable = "CODEXPLUGIN_DISABLE_APICHECK";
1616

ProjectPlugins/CodexPlugin/CodexSetup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public CodexLogCustomTopics(CodexLogLevel discV5, CodexLogLevel libp2p)
5454
public CodexLogLevel ContractClock { get; set; } = CodexLogLevel.Warn;
5555
public CodexLogLevel? BlockExchange { get; }
5656
public CodexLogLevel JsonSerialize { get; set; } = CodexLogLevel.Warn;
57+
public CodexLogLevel MarketplaceInfra { get; set; } = CodexLogLevel.Warn;
5758
}
5859

5960
public class CodexSetup : CodexStartupConfig, ICodexSetup

ProjectPlugins/CodexPlugin/CodexStartupConfig.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public string LogLevelWithTopics()
3030
{
3131
"discv5",
3232
"providers",
33+
"routingtable",
3334
"manager",
3435
"cache",
3536
};
@@ -80,12 +81,20 @@ public string LogLevelWithTopics()
8081
"json",
8182
"serialization"
8283
};
84+
var marketplaceInfraTopics = new[]
85+
{
86+
"JSONRPC-WS-CLIENT",
87+
"JSONRPC-HTTP-CLIENT",
88+
"codex",
89+
"repostore"
90+
};
8391

8492
level = $"{level};" +
8593
$"{CustomTopics.DiscV5.ToString()!.ToLowerInvariant()}:{string.Join(",", discV5Topics)};" +
8694
$"{CustomTopics.Libp2p.ToString()!.ToLowerInvariant()}:{string.Join(",", libp2pTopics)};" +
8795
$"{CustomTopics.ContractClock.ToString().ToLowerInvariant()}:{string.Join(",", contractClockTopics)};" +
88-
$"{CustomTopics.JsonSerialize.ToString().ToLowerInvariant()}:{string.Join(",", jsonSerializeTopics)}";
96+
$"{CustomTopics.JsonSerialize.ToString().ToLowerInvariant()}:{string.Join(",", jsonSerializeTopics)};" +
97+
$"{CustomTopics.MarketplaceInfra.ToString().ToLowerInvariant()}:{string.Join(",", marketplaceInfraTopics)}";
8998

9099
if (CustomTopics.BlockExchange != null)
91100
{

0 commit comments

Comments
 (0)