enabled error reports for sql update manager

pull/15/head
Trivernis 5 years ago
parent 160ee13ac8
commit d7052e1ac9

@ -62,6 +62,8 @@ class SqlUpdateManager(private val connnection: Connection, private val chunkmas
stmt.close() stmt.close()
} catch (err: Exception) { } catch (err: Exception) {
chunkmaster.logger.severe("Error creating table $table.") chunkmaster.logger.severe("Error creating table $table.")
chunkmaster.logger.severe(err.message)
chunkmaster.logger.info(err.stackTrace.toString())
} }
} }
for (table in needUpdate) { 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") chunkmaster.logger.info("Updated table ${table.first} with sql $updateSql")
} catch (e: Exception) { } catch (e: Exception) {
chunkmaster.logger.severe("Failed to update table ${table.first} with sql $updateSql") chunkmaster.logger.severe("Failed to update table ${table.first} with sql $updateSql")
chunkmaster.logger.severe(e.message)
chunkmaster.logger.info(e.stackTrace.toString())
} }
} }
} }

Loading…
Cancel
Save