Skip to content

Commit f884df8

Browse files
committed
fix: reduce memory footprint of large configuration logs (#1721)
1 parent 3f723ab commit f884df8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/aws/greengrass/componentmanager/KernelConfigResolver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ public Map<String, Object> resolve(List<ComponentIdentifier> componentsToDeploy,
189189
servicesConfig.putIfAbsent(nucleusComponentName, getNucleusComponentConfig(nucleusComponentName));
190190
servicesConfig.put(kernel.getMain().getName(), getMainConfig(rootPackages, nucleusComponentName));
191191

192-
LOGGER.atDebug().kv("Services Configuration", servicesConfig).log("Resolved services configuration.");
192+
LOGGER.atDebug().log("Resolved services configuration.");
193+
LOGGER.atTrace().kv("Services Configuration", servicesConfig).log();
193194
// Services need to be under the services namespace in kernel config
194195
return Collections.singletonMap(SERVICES_NAMESPACE_TOPIC, servicesConfig);
195196
}

0 commit comments

Comments
 (0)