Skip to content

Commit

Permalink
4.x: Remove unnecessary logging from HoconMpConfigIncluder (#9223)
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain1653 authored Oct 15, 2024
1 parent ba97c90 commit 8f9f04b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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()));

Expand All @@ -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()));
Expand All @@ -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();
Expand Down

0 comments on commit 8f9f04b

Please sign in to comment.