Browse Source

fix #2771 Suppress debug log in ThumbnailManager to active generating state only.

Shinsuke Sugaya 1 year ago
parent
commit
1d0dc43f00
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

+ 1 - 1
src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

@@ -134,7 +134,7 @@ public class ThumbnailManager {
                         }
                         }
                     }
                     }
                 } catch (final InterruptedException e) {
                 } catch (final InterruptedException e) {
-                    if (logger.isDebugEnabled()) {
+                    if (generating && logger.isDebugEnabled()) {
                         logger.debug("Interupted task.", e);
                         logger.debug("Interupted task.", e);
                     }
                     }
                 } catch (final Exception e) {
                 } catch (final Exception e) {