Skip to content

Commit a420d99

Browse files
committed
InputHarvester: debug if no widget
If there's no widget found then one of two things will happen: if it's optional, the program will continue as normal. If it's required, an exception is thrown. In the latter case we do not need to double warn, and in the former a debugging statement should be sufficient.
1 parent d31d0c3 commit a420d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/widget/AbstractInputHarvester.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private <T> WidgetModel addInput(final InputPanel<P, W> inputPanel,
135135
final Class<W> widgetType = inputPanel.getWidgetComponentType();
136136
final InputWidget<?, ?> widget = widgetService.create(model);
137137
if (widget == null) {
138-
log.warn("No widget found for input: " + model.getItem().getName());
138+
log.debug("No widget found for input: " + model.getItem().getName());
139139
}
140140
if (widget != null && widget.getComponentType() == widgetType) {
141141
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)