Skip to content

Commit

Permalink
Fixes #4273 - Add integration tests for Piranha Servlet
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem committed Nov 26, 2024
1 parent afc1072 commit 6279605
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions single/src/main/java/cloud/piranha/single/SinglePiranha.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,6 @@ public void run() {
featureManager.addFeature(exitOnStopFeature);
}

long finishTime = System.currentTimeMillis();
LOGGER.log(INFO, "Started Piranha");
LOGGER.log(INFO, "It took {0} milliseconds", finishTime - startTime);

if (configuration.getLong("pid") != null) {
File pidFile = new File("tmp", "piranha.pid");
if (!pidFile.getParentFile().exists() && !pidFile.getParentFile().mkdirs()) {
Expand All @@ -234,6 +230,10 @@ public void run() {
}
}

long finishTime = System.currentTimeMillis();
LOGGER.log(INFO, "Started Piranha");
LOGGER.log(INFO, "It took {0} milliseconds", finishTime - startTime);

while (!stop) {
if (configuration.getLong("pid") != null) {
File pidFile = new File("tmp", "piranha.pid");
Expand All @@ -249,7 +249,7 @@ public void run() {
}

try {
Thread.sleep(100);
Thread.sleep(1000);
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
}
Expand Down

0 comments on commit 6279605

Please sign in to comment.