diff options
author | Marvin Borner | 2019-04-07 12:44:08 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-07 12:44:08 +0200 |
commit | 51c6451b36e8f3845ba278d42e7c4a9941556986 (patch) | |
tree | 04322889be28112838decb6030f0b16504fa86a0 /src/main/kotlin/DatabaseController.kt | |
parent | b46ac266bb8625c09c07f7df43cb3da9a0bfe1ac (diff) |
Added better logging
Diffstat (limited to 'src/main/kotlin/DatabaseController.kt')
-rw-r--r-- | src/main/kotlin/DatabaseController.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/kotlin/DatabaseController.kt b/src/main/kotlin/DatabaseController.kt index 64acc6c..32e33ef 100644 --- a/src/main/kotlin/DatabaseController.kt +++ b/src/main/kotlin/DatabaseController.kt @@ -3,9 +3,11 @@ package space.anity import org.jetbrains.exposed.sql.* import org.jetbrains.exposed.sql.transactions.* import java.sql.* +import java.util.logging.* class DatabaseController(dbFileLocation: String = "main.db") { val db: Database + val LOG = Logger.getLogger(this.javaClass.name) /** * Database table for the file location indexing @@ -53,7 +55,7 @@ class DatabaseController(dbFileLocation: String = "main.db") { it[role] = roleString } } catch (_: org.jetbrains.exposed.exceptions.ExposedSQLException) { - println("User already exists") + LOG.warning("User already exists!") } } |