diff options
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!") } } |