improved logging to assist in resolving #1061

This commit is contained in:
Jeremy Long
2018-01-21 09:12:36 -05:00
parent 9cf3313f31
commit 275d1bdbf9
4 changed files with 15 additions and 9 deletions

View File

@@ -457,7 +457,8 @@ public final class Settings {
*/
public static final String MAX_BATCH_SIZE = "database.batchinsert.maxsize";
/**
* The key that specifies the class name of the H2 database shutdown hook.
* The key that specifies the class name of the H2 database shutdown
* hook.
*/
public static final String H2DB_SHUTDOWN_HOOK = "data.h2.shutdownhook";
@@ -522,6 +523,7 @@ public final class Settings {
*/
public synchronized void cleanup(boolean deleteTemporary) {
if (deleteTemporary && tempDirectory != null && tempDirectory.exists()) {
LOGGER.debug("Deleting ALL temporary files from `{}`", tempDirectory.toString());
FileUtils.delete(tempDirectory);
tempDirectory = null;
}