]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3306 minor improvement on logs
authorJulien Lancelot <julien.lancelot@gmail.com>
Mon, 3 Dec 2012 16:35:13 +0000 (17:35 +0100)
committerJulien Lancelot <julien.lancelot@gmail.com>
Mon, 3 Dec 2012 17:24:02 +0000 (18:24 +0100)
sonar-batch/src/main/java/org/sonar/batch/bootstrap/CheckSemaphore.java
sonar-core/src/test/java/org/sonar/core/persistence/SemaphoreDaoTest.java

index c3f7a6086e4f6f304d43ef6f2547eaeee640002d..7ea91681fe301eda9d6bb1df2c33312ece976cdf 100644 (file)
@@ -70,7 +70,7 @@ public class CheckSemaphore {
   }
 
   private Lock acquire() {
-    LOG.debug("Acquire semaphore on project : {}", getProject());
+    LOG.debug("Acquire semaphore on project : {}, with key {}", getProject(), getSemaphoreKey());
     if (!isForceAnalyseActivated()) {
       return semaphoreDao.acquire(getSemaphoreKey());
     } else {
@@ -79,7 +79,7 @@ public class CheckSemaphore {
   }
 
   private void release() {
-    LOG.debug("Release semaphore on project : {}", getProject());
+    LOG.debug("Release semaphore on project : {}, with key {}", getProject(), getSemaphoreKey());
     semaphoreDao.release(getSemaphoreKey());
   }
 
index 6458060cb3a62be4b3ba64b22f613c496a083399..4aae08020825812422224e78a188939c0413d8a7 100644 (file)
@@ -248,7 +248,6 @@ public class SemaphoreDaoTest extends AbstractDaoTestCase {
     ResultSet rs = null;
     try {
       connection = getConnection();
-      rs = null;
       statement = connection.prepareStatement("select current_timestamp");
       rs = statement.executeQuery();
       if (rs.next()) {