Skip to content

Commit 34e2800

Browse files
committed
ScriptFinder: quelch unsupported script message
If you have a script directory prefix with a mixture of scripts and non-scripts such as JAR files (which is what Fiji has, for example), the ScriptFinder was issuing a warning message for each and every JAR file. This is normal and expected, so let's not warn about it, but rather mention it only when debug logging is enabled.
1 parent 331e584 commit 34e2800

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/org/scijava/script/ScriptFinder.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private int createInfos(final List<ScriptInfo> scripts, final Set<URL> urls,
164164
int scriptCount = 0;
165165
for (final String path : scriptMap.keySet()) {
166166
if (!scriptService.canHandleFile(path)) {
167-
log.warn("Ignoring unsupported script: " + path);
167+
log.debug("Ignoring unsupported script: " + path);
168168
continue;
169169
}
170170

0 commit comments

Comments
 (0)