diff --git a/src/org/labkey/targetedms/view/spectrum/LibrarySpectrumMatchGetter.java b/src/org/labkey/targetedms/view/spectrum/LibrarySpectrumMatchGetter.java index cd5e4178a..5d7d6c9ab 100644 --- a/src/org/labkey/targetedms/view/spectrum/LibrarySpectrumMatchGetter.java +++ b/src/org/labkey/targetedms/view/spectrum/LibrarySpectrumMatchGetter.java @@ -114,9 +114,10 @@ private static boolean isLargeSpectrumLibrary(Path libPath) } catch (IOException e) { - // If we cannot stat the file it is missing or unreadable, in which case the - // downstream library read will fail too. - LOG.warn("Could not determine size of spectrum library file " + libPath, e); + // The file is missing or unreadable; the downstream library read would fail too. + // Log a single WARN line and keep the stack trace at DEBUG so frequent hits do not flood the primary log. + LOG.warn("Could not determine size of spectrum library file " + libPath + " (" + e.getClass().getSimpleName() + ")"); + LOG.debug("Could not determine size of spectrum library file " + libPath, e); return false; } }