Skip to content

Commit

Permalink
Merge pull request #592 from opatrascoiu/branch-5.5.2
Browse files Browse the repository at this point in the history
Change log level in jdmn-runtime to avoid verbosity.
  • Loading branch information
opatrascoiu authored Jul 25, 2023
2 parents 424fee6 + 9af91e8 commit 202d8a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dmn-runtime/src/main/java/com/gs/dmn/runtime/LazyEval.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
*/
public final class LazyEval<T> {
protected static final Logger LOGGER = LoggerFactory.getLogger(LazyEval.class);
private static final Logger LOGGER = LoggerFactory.getLogger(LazyEval.class);

private T value;
private boolean isValueSet = false;
Expand All @@ -39,7 +39,7 @@ public T getOrCompute() {
}

private T compute() {
LOGGER.info("Trigger lazy evaluation");
LOGGER.debug("Trigger lazy evaluation");

isValueSet = true;
return value = supplier.get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public LoggingEventListener(Logger logger) {

@Override
public void startDRGElement(DRGElement element, Arguments arguments) {
logger.info("Start {} '{}' with inputs '{}'", element.getElementKind().getDisplayName(), element.getName(), arguments);
logger.debug("Start {} '{}' with inputs '{}'", element.getElementKind().getDisplayName(), element.getName(), arguments);
}

@Override
public void endDRGElement(DRGElement element, Arguments arguments, Object output, long duration) {
logger.info("End {} '{}' with output '{}' in {}ms", element.getElementKind().getDisplayName(), element.getName(), output, duration);
logger.debug("End {} '{}' with output '{}' in {}ms", element.getElementKind().getDisplayName(), element.getName(), output, duration);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static DocumentBuilderFactory makeDocumentBuilderFactory() {
dbf.setAttribute(attribute, ""); // compliant
} catch (IllegalArgumentException e) {
// This should catch a failed setAttribute feature
LOGGER.info("IllegalArgumentException was thrown. The attribute '" + attribute
LOGGER.debug("IllegalArgumentException was thrown. The attribute '" + attribute
+ "' is probably not supported by your XML processor.");
}
String feature = null;
Expand Down Expand Up @@ -70,7 +70,7 @@ public static DocumentBuilderFactory makeDocumentBuilderFactory() {
// of service attacks (such as billion laughs or decompression bombs via "jar:") are a risk."
} catch (ParserConfigurationException e) {
// This should catch a failed setFeature feature
LOGGER.info("ParserConfigurationException was thrown. The feature '" + feature
LOGGER.debug("ParserConfigurationException was thrown. The feature '" + feature
+ "' is probably not supported by your XML processor.");
}

Expand Down

0 comments on commit 202d8a1

Please sign in to comment.