Commits

Sebastian Sdorra  committed a40cd03

improve logging of default plugin scanner

  • Participants
  • Parent commits b80811f

Comments (0)

Files changed (1)

File scm-plugin-backend/src/main/java/sonia/scm/plugin/scanner/DefaultPluginScanner.java

    * @param filter
    */
   private void scannDirectory(PluginBackend backend, Set<File> scannedFiles,
-                              Set<PluginInformation> plugins, File directory,
-                              FileFilter filter)
+    Set<PluginInformation> plugins, File directory, FileFilter filter)
   {
-    if (logger.isDebugEnabled())
+    if (logger.isTraceEnabled())
     {
-      logger.debug("scann directory {}", directory.getPath());
+      logger.trace("scann directory {}", directory.getPath());
     }
 
     File[] files = directory.listFiles(filter);
         catch (Exception ex)
         {
           logger.error(
-              "could not read plugin descriptor ".concat(file.getPath()), ex);
+            "could not read plugin descriptor ".concat(file.getPath()), ex);
         }
       }
     }
    * @throws JAXBException
    */
   private void scannFile(Set<PluginInformation> plugins, File file)
-          throws IOException, JAXBException
+    throws IOException, JAXBException
   {
     if (logger.isDebugEnabled())
     {
-      logger.debug("scann file {}", file.getPath());
+      logger.trace("scann file {}", file.getPath());
     }
 
     JarInputStream inputStream = null;
             (Plugin) pluginContext.createUnmarshaller().unmarshal(inputStream);
 
           if ((plugin != null) && (plugin.getInformation() != null)
-              && plugin.getInformation().isValid())
+            && plugin.getInformation().isValid())
           {
+            logger.debug("analyze plugin: {}", plugin);
+
             PluginCondition condition = plugin.getCondition();
 
             if (condition != null)