From 8f9f04b2d73a2060a70ea7f92079eb5178b42336 Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Wed, 16 Oct 2024 01:14:37 +0300 Subject: [PATCH] 4.x: Remove unnecessary logging from HoconMpConfigIncluder (#9223) --- .../io/helidon/config/hocon/mp/HoconMpConfigIncluder.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/config/hocon-mp/src/main/java/io/helidon/config/hocon/mp/HoconMpConfigIncluder.java b/config/hocon-mp/src/main/java/io/helidon/config/hocon/mp/HoconMpConfigIncluder.java index efde0b25d11..4cf882f7452 100644 --- a/config/hocon-mp/src/main/java/io/helidon/config/hocon/mp/HoconMpConfigIncluder.java +++ b/config/hocon-mp/src/main/java/io/helidon/config/hocon/mp/HoconMpConfigIncluder.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Oracle and/or its affiliates. + * Copyright (c) 2022, 2024 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,7 +59,6 @@ public ConfigIncluder withFallback(ConfigIncluder fallback) { @Override public ConfigObject include(ConfigIncludeContext context, String what) { - new Exception().printStackTrace(); LOGGER.log(TRACE, String.format("Received request to include resource %s, %s", what, context.parseOptions().getOriginDescription())); @@ -71,7 +70,6 @@ private ConfigObject parseHoconFromUrl(String includeName) { URL includeUrl; try { includeUrl = new URL(includePath); - System.out.println("includeURL: " + includeUrl); } catch (MalformedURLException e) { LOGGER.log(WARNING, String.format("Unable to create include Url for: %s with error: %s", includePath, e.getMessage())); @@ -88,7 +86,6 @@ private ConfigObject parseHoconFromUrl(String includeName) { private ConfigObject parseHoconFromPath(String includeName) { Path path = relativePath.resolve(includeName); if (Files.exists(path) && Files.isReadable(path) && !Files.isDirectory(path)) { - System.out.println("Path: " + path); try (BufferedReader reader = Files.newBufferedReader(path, charset)) { Config typesafeConfig = ConfigFactory.parseReader(reader, parseOptions); return typesafeConfig.root();