diff --git a/src/main/scala/gitbucket/core/plugin/PluginRegistory.scala b/src/main/scala/gitbucket/core/plugin/PluginRegistory.scala index bd0c3e2..a963f5e 100644 --- a/src/main/scala/gitbucket/core/plugin/PluginRegistory.scala +++ b/src/main/scala/gitbucket/core/plugin/PluginRegistory.scala @@ -200,12 +200,14 @@ using(fc.tryLock()){ lock => if(lock == null){ if(retry >= 3){ // Retry max 3 times - logger.info(s"Retire to load: ${from.getAbsolutePath}") + logger.info(s"Retire to install plugin: ${from.getAbsolutePath}") } else { + logger.info(s"Retry ${retry + 1} to install plugin: ${from.getAbsolutePath}") Thread.sleep(500) copyFile(from, to, retry + 1) } } else { + logger.info(s"Install plugin: ${from.getAbsolutePath}") FileUtils.copyFile(from, to) } } @@ -341,6 +343,7 @@ gitbucket.core.servlet.Database() withTransaction { session => logger.info("Reloading plugins...") PluginRegistry.reload(context, loadSystemSettings(), session.conn) + logger.info("Reloading finished.") } } detectedWatchKey.reset()