From d7052e1ac915df0affdea392ec732a072f3728e6 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Wed, 2 Oct 2019 10:13:24 +0200 Subject: [PATCH] enabled error reports for sql update manager --- .../kotlin/net/trivernis/chunkmaster/lib/SqlUpdateManager.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/net/trivernis/chunkmaster/lib/SqlUpdateManager.kt b/src/main/kotlin/net/trivernis/chunkmaster/lib/SqlUpdateManager.kt index ad18e03..217b6ae 100644 --- a/src/main/kotlin/net/trivernis/chunkmaster/lib/SqlUpdateManager.kt +++ b/src/main/kotlin/net/trivernis/chunkmaster/lib/SqlUpdateManager.kt @@ -62,6 +62,8 @@ class SqlUpdateManager(private val connnection: Connection, private val chunkmas stmt.close() } catch (err: Exception) { chunkmaster.logger.severe("Error creating table $table.") + chunkmaster.logger.severe(err.message) + chunkmaster.logger.info(err.stackTrace.toString()) } } for (table in needUpdate) { @@ -73,6 +75,8 @@ class SqlUpdateManager(private val connnection: Connection, private val chunkmas chunkmaster.logger.info("Updated table ${table.first} with sql $updateSql") } catch (e: Exception) { chunkmaster.logger.severe("Failed to update table ${table.first} with sql $updateSql") + chunkmaster.logger.severe(e.message) + chunkmaster.logger.info(e.stackTrace.toString()) } } }