diff options
author | Daniel Trebbien <dtrebbien@gmail.com> | 2017-10-09 10:16:51 -0500 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2017-10-10 13:28:44 +0200 |
commit | 441b01006f59aa35668be27ae8c2fad05c260edb (patch) | |
tree | 8b99bca76f04b840bfc8a5c7a2aae500a347d07e /server/sonar-process | |
parent | 3f876238ebdfd1cce633ba2c0649752a77602968 (diff) | |
download | sonarqube-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.java | 4 |
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(); |