From 4260ed7969e09b4e7446bf028aae70ab21d2bee4 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 31 Mar 2025 11:46:50 +0200 Subject: [PATCH] IntegrityProtectedInputStream: remove useless logger --- .../IntegrityProtectedInputStream.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/IntegrityProtectedInputStream.kt b/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/IntegrityProtectedInputStream.kt index 4618882c..3b215669 100644 --- a/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/IntegrityProtectedInputStream.kt +++ b/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/IntegrityProtectedInputStream.kt @@ -9,8 +9,6 @@ import java.io.InputStream import org.bouncycastle.openpgp.PGPEncryptedData import org.bouncycastle.openpgp.PGPException import org.pgpainless.exception.ModificationDetectionException -import org.slf4j.Logger -import org.slf4j.LoggerFactory class IntegrityProtectedInputStream( private val inputStream: InputStream, @@ -30,15 +28,9 @@ class IntegrityProtectedInputStream( if (encryptedData.isIntegrityProtected && !options.isIgnoreMDCErrors()) { try { if (!encryptedData.verify()) throw ModificationDetectionException() - LOGGER.debug("Integrity Protection check passed.") } catch (e: PGPException) { throw IOException("Data appears to not be integrity protected.", e) } } } - - companion object { - @JvmStatic - val LOGGER: Logger = LoggerFactory.getLogger(IntegrityProtectedInputStream::class.java) - } }