From d514680a118adfd8c7225e01d775fc12cc90420b Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 29 Apr 2020 14:39:50 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=94=8A=20Use=20java.util=20logger=20instea?= =?utf8?q?d=20of=20custom=20logger?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/net/pterodactylus/sone/core/UpdatedSoneProcessor.kt | 4 ++-- src/main/kotlin/net/pterodactylus/sone/main/SoneModule.kt | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/net/pterodactylus/sone/core/UpdatedSoneProcessor.kt b/src/main/kotlin/net/pterodactylus/sone/core/UpdatedSoneProcessor.kt index 54af30a..0773adb 100644 --- a/src/main/kotlin/net/pterodactylus/sone/core/UpdatedSoneProcessor.kt +++ b/src/main/kotlin/net/pterodactylus/sone/core/UpdatedSoneProcessor.kt @@ -7,7 +7,7 @@ import net.pterodactylus.sone.data.* import net.pterodactylus.sone.data.Sone.* import net.pterodactylus.sone.database.* import net.pterodactylus.sone.utils.* -import net.pterodactylus.util.logging.* +import java.util.logging.Logger import javax.inject.Inject /** @@ -24,7 +24,7 @@ interface UpdatedSoneProcessor { abstract class BasicUpdateSoneProcessor(private val database: Database, private val eventBus: EventBus) : UpdatedSoneProcessor { - private val logger = Logging.getLogger(UpdatedSoneProcessor::javaClass.name)!! + private val logger = Logger.getLogger(UpdatedSoneProcessor::javaClass.name)!! override fun updateSone(sone: Sone) { val storedSone = database.getSone(sone.id) ?: return diff --git a/src/main/kotlin/net/pterodactylus/sone/main/SoneModule.kt b/src/main/kotlin/net/pterodactylus/sone/main/SoneModule.kt index a95cf78..212751a 100644 --- a/src/main/kotlin/net/pterodactylus/sone/main/SoneModule.kt +++ b/src/main/kotlin/net/pterodactylus/sone/main/SoneModule.kt @@ -16,12 +16,11 @@ import net.pterodactylus.sone.web.FreenetSessionProvider import net.pterodactylus.sone.web.SessionProvider import net.pterodactylus.util.config.* import net.pterodactylus.util.config.ConfigurationException -import net.pterodactylus.util.logging.* import net.pterodactylus.util.version.Version import java.io.* import java.util.concurrent.* import java.util.concurrent.Executors.* -import java.util.logging.* +import java.util.logging.Logger import javax.inject.* import javax.inject.Singleton @@ -83,7 +82,7 @@ open class SoneModule(private val sonePlugin: SonePlugin, private val eventBus: fun getNotificationTicker(): ScheduledExecutorService = newSingleThreadScheduledExecutor() - private val logger: Logger = Logging.getLogger(javaClass) + private val logger: Logger = Logger.getLogger(javaClass.name) } -- 2.7.4