Skip to content

Commit 8c2b8f6

Browse files
committed
DefaultModuleService: include exception in log
When logging the error creating a module, include the exception too. We have it, so we should pass it on. (If the stack trace is annoying on the console, the answer is not to eat the exception, but rather to change on information from the log is emitted to the console.)
1 parent 41a27d3 commit 8c2b8f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/module/DefaultModuleService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public Module createModule(final ModuleInfo info) {
152152
return module;
153153
}
154154
catch (final ModuleException exc) {
155-
log.error("Cannot create module: " + info.getDelegateClassName());
155+
log.error("Cannot create module: " + info.getDelegateClassName(), exc);
156156
}
157157
return null;
158158
}

0 commit comments

Comments
 (0)