Use logging method that’s present in Java 1.7
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Feb 2019 19:05:38 +0000 (20:05 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Feb 2019 21:16:16 +0000 (22:16 +0100)
src/main/kotlin/net/pterodactylus/sone/core/UpdatedSoneProcessor.kt

index 17948c5..580f227 100644 (file)
@@ -32,7 +32,7 @@ abstract class BasicUpdateSoneProcessor(private val database: Database, private
        override fun updateSone(sone: Sone) {
                val storedSone = database.getSone(sone.id) ?: return
                if (!soneCanBeUpdated(storedSone, sone)) {
-                       logger.fine { "Downloaded Sone $sone can not update stored Sone $storedSone." }
+                       logger.fine("Downloaded Sone $sone can not update stored Sone $storedSone.")
                        return
                }
                collectEventsForChanges(storedSone, sone)