We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd4cbd5 + 5261802 commit d8577f0Copy full SHA for d8577f0
transitclock/src/main/java/org/transitclock/applications/Core.java
@@ -538,14 +538,18 @@ public static void main(String[] args) {
538
public void run()
539
{
540
try {
541
+ System.out.println("Calling shutdown hook.");
542
logger.info("Closing cache.");
543
+ System.out.println("Closing cache...");
544
CacheManagerFactory.getInstance().close();
545
logger.info("Cache closed.");
546
+ System.out.println("Cache closed.");
547
} catch (Exception e) {
- logger.error("Cache close failed.");
548
+ System.out.println("Cache close failed.");
549
+ e.printStackTrace();
550
+ logger.error("Cache close failed...");
551
logger.error(e.getMessage(),e);
- }
- System.exit(0);
552
+ }
553
}
554
}));
555
0 commit comments