From d6e60cd8d42dd9246e4aad2f0d8c64a5b0841ce2 Mon Sep 17 00:00:00 2001 From: Felix Weilbach Date: Thu, 23 Sep 2021 14:13:34 +0200 Subject: [PATCH] Don't log encryption data in release mode We deliver our builds to users with debug logging enabled to have an easier time finding problems. However, logging all the encryption data in this loop is too much and should not be done in release mode. Signed-off-by: Felix Weilbach --- src/libsync/clientsideencryption.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index a5621409a..1deada948 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1667,7 +1667,6 @@ bool EncryptionHelper::fileEncryption(const QByteArray &key, const QByteArray &i return false; } - qCDebug(lcCse) << "Encrypting " << data; if(!EVP_EncryptUpdate(ctx, unsignedData(out), &len, (unsigned char *)data.constData(), data.size())) { qCInfo(lcCse()) << "Could not encrypt"; return false; -- 2.30.2