Skip to content

Commit 29255db

Browse files
committed
Be less noisy about overlapping script languages
We really only need to know about these things in debug mode.
1 parent 8f8a277 commit 29255db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/scijava/script/ScriptLanguageIndex.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ private boolean put(final String type, final Map<String, ScriptLanguage> map,
146146
// Conflicting value; behavior depends on mode.
147147
if (gently) {
148148
// Do not overwrite the previous value.
149-
if (log != null && log.isWarn()) {
150-
log.warn(overwriteMessage(false, type, key, value, existing));
149+
if (log != null && log.isDebug()) {
150+
log.debug(overwriteMessage(false, type, key, value, existing));
151151
}
152152
return false;
153153
}

0 commit comments

Comments
 (0)