Skip to content

Commit e1f05cc

Browse files
authored
chore(codegen): adjust logging levels to reduce output (#1796)
1 parent ba793c7 commit e1f05cc

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/DirectedTypeScriptCodegen.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ public TypeScriptCodegenContext createContext(CreateContextDirective<TypeScriptS
9292

9393
List<RuntimeClientPlugin> runtimePlugins = new ArrayList<>();
9494
directive.integrations().forEach(integration -> {
95-
LOGGER.info(() -> "Adding TypeScriptIntegration: " + integration.getClass().getName());
95+
LOGGER.fine(() -> "Adding TypeScriptIntegration: " + integration.getClass().getName());
9696
integration.getClientPlugins().forEach(runtimePlugin -> {
9797
if (runtimePlugin.matchesSettings(directive.model(), directive.service(), directive.settings())) {
98-
LOGGER.info(() -> "Adding TypeScript runtime plugin: " + runtimePlugin);
98+
LOGGER.fine(() -> "Adding TypeScript runtime plugin: " + runtimePlugin);
9999
runtimePlugins.add(runtimePlugin);
100100
} else {
101-
LOGGER.info(() -> "Skipping TypeScript runtime plugin based on settings: " + runtimePlugin);
101+
LOGGER.fine(() -> "Skipping TypeScript runtime plugin based on settings: " + runtimePlugin);
102102
}
103103
});
104104
});
105105

106106
directive.integrations().forEach(integration -> {
107-
LOGGER.info(() -> "Mutating plugins from TypeScriptIntegration: " + integration.name());
107+
LOGGER.fine(() -> "Mutating plugins from TypeScriptIntegration: " + integration.name());
108108
integration.mutateClientPlugins(runtimePlugins);
109109
});
110110

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptClientCodegenPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void execute(PluginContext context) {
5555
.filter(integration -> {
5656
boolean matchesSettings = integration.matchesSettings(settings);
5757
if (!matchesSettings) {
58-
LOGGER.info(() -> "Skipping TypeScript integration based on settings: " + integration.name());
58+
LOGGER.fine(() -> "Skipping TypeScript integration based on settings: " + integration.name());
5959
}
6060
return matchesSettings;
6161
})

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptServerCodegenPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void execute(PluginContext context) {
6565
.filter(integration -> {
6666
boolean matchesSettings = integration.matchesSettings(settings);
6767
if (!matchesSettings) {
68-
LOGGER.info(() -> "Skipping TypeScript integration based on settings: " + integration.name());
68+
LOGGER.fine(() -> "Skipping TypeScript integration based on settings: " + integration.name());
6969
}
7070
return matchesSettings;
7171
})

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptSettings.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ public final class TypeScriptSettings {
7070
private static final String GENERATE_INDEX_TESTS = "generateIndexTests";
7171
private static final String SERVICE_PROTOCOL_PRIORITY = "serviceProtocolPriority";
7272
private static final String DEFAULT_PROTOCOL_PRIORITY = "defaultProtocolPriority";
73+
private static final String BIG_NUMBER_MODE = "bigNumberMode";
74+
private static final String GENERATE_SCHEMAS = "generateSchemas";
7375

7476
private String packageName;
7577
private String packageDescription = "";
@@ -190,7 +192,7 @@ private static ShapeId inferService(Model model) {
190192
throw new CodegenException("Cannot infer a service to generate because the model contains "
191193
+ "multiple service shapes: " + services);
192194
} else {
193-
LOGGER.info("Inferring service to generate as " + services.get(0));
195+
LOGGER.fine("Inferring service to generate as " + services.get(0));
194196
return services.get(0);
195197
}
196198
}
@@ -576,14 +578,14 @@ public enum ArtifactType {
576578
PACKAGE, PACKAGE_DESCRIPTION, PACKAGE_JSON, PACKAGE_VERSION, PACKAGE_MANAGER,
577579
SERVICE, PROTOCOL, PRIVATE, REQUIRED_MEMBER_MODE,
578580
CREATE_DEFAULT_README, USE_LEGACY_AUTH, GENERATE_TYPEDOC,
579-
GENERATE_INDEX_TESTS
581+
GENERATE_INDEX_TESTS, BIG_NUMBER_MODE, GENERATE_SCHEMAS
580582
)),
581583
SSDK((m, s) -> new ServerSymbolVisitor(m, new SymbolVisitor(m, s)),
582584
Arrays.asList(
583585
PACKAGE, PACKAGE_DESCRIPTION, PACKAGE_JSON, PACKAGE_VERSION, PACKAGE_MANAGER,
584586
SERVICE, PROTOCOL, PRIVATE, REQUIRED_MEMBER_MODE,
585587
DISABLE_DEFAULT_VALIDATION, CREATE_DEFAULT_README, GENERATE_TYPEDOC,
586-
GENERATE_INDEX_TESTS
588+
GENERATE_INDEX_TESTS, BIG_NUMBER_MODE, GENERATE_SCHEMAS
587589
));
588590

589591
private final BiFunction<Model, TypeScriptSettings, SymbolProvider> symbolProviderFactory;

0 commit comments

Comments
 (0)