Skip to content

Commit a8f623b

Browse files
committed
ServiceHelper: do not report problem twice
Originally, we had a warn() and a debug() (the latter including the stacktrace) when a service could not be instantiated. But the warning was not helpful enough, so we added the stacktrace to the warning, too. But then the exact same things were reported by both calls, so let's remove the debug() call. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent d97e180 commit a8f623b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/main/java/org/scijava/service/ServiceHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ public <S extends Service> S createExactService(final Class<S> c) {
161161
}
162162
catch (final Throwable t) {
163163
warn("Invalid service: " + c.getName(), t);
164-
debug("Invalid service: " + c.getName(), t);
165164
}
166165
return null;
167166
}

0 commit comments

Comments
 (0)