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()) } } }