Skip to content

Commit

Permalink
sleep to show error
Browse files Browse the repository at this point in the history
  • Loading branch information
yishi-ttd committed Nov 3, 2023
1 parent 57a5d70 commit 006b35f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/main/java/com/uid2/operator/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,16 @@ else if (!Utils.isProductionEnvironment()) {
app.run();
} catch (Exception e) {
LOGGER.error("Error: " + e.getMessage(), e);
((LoggerContext)org.slf4j.LoggerFactory.getILoggerFactory()).stop(); // flush logs before shutdown
vertx.close();
System.exit(1);
}

try {
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}

vertx.close();
System.exit(1);
});
}

Expand Down

0 comments on commit 006b35f

Please sign in to comment.