aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process
diff options
context:
space:
mode:
authorDaniel Trebbien <dtrebbien@gmail.com>2017-10-09 10:16:51 -0500
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-10-10 13:28:44 +0200
commit441b01006f59aa35668be27ae8c2fad05c260edb (patch)
tree8b99bca76f04b840bfc8a5c7a2aae500a347d07e /server/sonar-process
parent3f876238ebdfd1cce633ba2c0649752a77602968 (diff)
downloadsonarqube-441b01006f59aa35668be27ae8c2fad05c260edb.tar.gz
sonarqube-441b01006f59aa35668be27ae8c2fad05c260edb.zip
Utilize parameterized logging rather than String.format()
Diffstat (limited to 'server/sonar-process')
-rw-r--r--server/sonar-process/src/main/java/org/sonar/process/StopperThread.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/StopperThread.java b/server/sonar-process/src/main/java/org/sonar/process/StopperThread.java
index 14fe192cd9c..00f81bf267a 100644
--- a/server/sonar-process/src/main/java/org/sonar/process/StopperThread.java
+++ b/server/sonar-process/src/main/java/org/sonar/process/StopperThread.java
@@ -27,8 +27,6 @@ import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import org.sonar.process.sharedmemoryfile.ProcessCommands;
-import static java.lang.String.format;
-
/**
* Gracefully stops process in a timely fashion
*/
@@ -52,7 +50,7 @@ class StopperThread extends Thread {
Future future = executor.submit(monitored::stop);
future.get(terminationTimeoutMs, TimeUnit.MILLISECONDS);
} catch (Exception e) {
- LoggerFactory.getLogger(getClass()).error(format("Can not stop in %dms", terminationTimeoutMs), e);
+ LoggerFactory.getLogger(getClass()).error("Can not stop in {}ms", terminationTimeoutMs, e);
}
executor.shutdownNow();
commands.endWatch();