Fixes and version change

- increased version number
- fixed stacktrace print for sql update manager
- closed table info in the update manager
pull/15/head
Trivernis 5 years ago
parent d7052e1ac9
commit b09b96d95c

@ -22,7 +22,7 @@ idea {
} }
group "net.trivernis" group "net.trivernis"
version "0.12-beta" version "0.13-beta"
sourceCompatibility = 1.8 sourceCompatibility = 1.8

@ -1,6 +1,7 @@
package net.trivernis.chunkmaster.lib package net.trivernis.chunkmaster.lib
import net.trivernis.chunkmaster.Chunkmaster import net.trivernis.chunkmaster.Chunkmaster
import org.apache.commons.lang.exception.ExceptionUtils
import java.lang.Exception import java.lang.Exception
import java.sql.Connection import java.sql.Connection
@ -41,6 +42,7 @@ class SqlUpdateManager(private val connnection: Connection, private val chunkmas
} else { } else {
needCreation.add(table.first) needCreation.add(table.first)
} }
resTables.close()
} }
} }
@ -63,7 +65,7 @@ class SqlUpdateManager(private val connnection: Connection, private val chunkmas
} 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.severe(err.message)
chunkmaster.logger.info(err.stackTrace.toString()) chunkmaster.logger.info(ExceptionUtils.getStackTrace(err));
} }
} }
for (table in needUpdate) { for (table in needUpdate) {
@ -76,7 +78,7 @@ class SqlUpdateManager(private val connnection: Connection, private val chunkmas
} 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.severe(e.message)
chunkmaster.logger.info(e.stackTrace.toString()) chunkmaster.logger.info(ExceptionUtils.getStackTrace(e))
} }
} }
} }

@ -1,6 +1,6 @@
main: net.trivernis.chunkmaster.Chunkmaster main: net.trivernis.chunkmaster.Chunkmaster
name: Chunkmaster name: Chunkmaster
version: '0.12-beta' version: '0.13-beta'
description: Chunk commands plugin. description: Chunk commands plugin.
author: Trivernis author: Trivernis
website: trivernis.net website: trivernis.net

Loading…
Cancel
Save