From: David ‘Bombe’ Roden Date: Wed, 29 Apr 2020 12:39:50 +0000 (+0200) Subject: 🔊 Use java.util logger instead of custom logger X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d514680a118adfd8c7225e01d775fc12cc90420b;p=Sone.git 🔊 Use java.util logger instead of custom logger --- 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) }