From d91503e01c45c23a728210bc27ea501443d06e73 Mon Sep 17 00:00:00 2001 From: Gerhard Muth Date: Wed, 2 Oct 2024 13:28:57 +0200 Subject: [PATCH] logging config issue fixed --- src/main/kotlin/de/gmuth/ipp/core/IppMessage.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/de/gmuth/ipp/core/IppMessage.kt b/src/main/kotlin/de/gmuth/ipp/core/IppMessage.kt index 57e81904..38d24ec6 100644 --- a/src/main/kotlin/de/gmuth/ipp/core/IppMessage.kt +++ b/src/main/kotlin/de/gmuth/ipp/core/IppMessage.kt @@ -18,7 +18,7 @@ abstract class IppMessage() { var keepDocumentCopy: Boolean = false } - private val logger = getLogger(javaClass.name) + private val logger = getLogger(IppMessage::class.java.name) var code: Int? = null // unsigned short (16 bits) var requestId: Int? = null var version: String? = null @@ -169,7 +169,7 @@ abstract class IppMessage() { documentInputStreamIsConsumed = true if (keepDocumentCopy) { documentBytes = byteArraySavingOutputStream.getSavedBytes() - if (documentBytes!!.isNotEmpty()) logger.fine("Keeping ${documentBytes!!.size} document bytes") + if (documentBytes!!.isNotEmpty()) logger.finer("Keeping ${documentBytes!!.size} document bytes") } byteArraySavingOutputStream.close() }