Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.x: Remove unnecessary logging from HoconMpConfigIncluder #9223

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
Captain1653 marked this conversation as resolved.
Show resolved Hide resolved
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