Skip to content

Commit 74a4d1b

Browse files
authored
Merge pull request #39 from NodePit/improve-logging
Lower logging verbosity from error to warn
2 parents f18421b + 4e34ab1 commit 74a4d1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

de.philippkatz.knime.jsondocgen.application/src/de/philippkatz/knime/jsondocgen/JsonNodeDocuGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ private static boolean isStreamable(NodeModel nodeModel) {
656656
}
657657
} catch (NoSuchMethodException e) {
658658
// this should never happen, as the method is implemented by the NodeModel class
659-
LOGGER.error(String.format("No createStreamableOperator method in %s", nodeModel.getClass().getName()), e);
659+
LOGGER.warn(String.format("No createStreamableOperator method in %s", nodeModel.getClass().getName()));
660660
}
661661
return false;
662662
}
@@ -673,7 +673,7 @@ private static Optional<String> getBundleName(NodeFactory<?> nodeFactory) {
673673
method.setAccessible(true);
674674
return (Optional<String>) method.invoke(nodeFactory);
675675
} catch (ReflectiveOperationException | IllegalArgumentException e) {
676-
LOGGER.error(String.format("Could not call getBundleName for %s", nodeFactory.getClass().getName()), e);
676+
LOGGER.warn(String.format("Could not call getBundleName for %s: %s", nodeFactory.getClass().getName(), e.getMessage()));
677677
return Optional.empty();
678678
}
679679
}

0 commit comments

Comments
 (0)