Don't log encryption data in release mode
authorFelix Weilbach <felix.weilbach@nextcloud.com>
Thu, 23 Sep 2021 12:13:34 +0000 (14:13 +0200)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Thu, 30 Sep 2021 10:23:19 +0000 (10:23 +0000)
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 <felix.weilbach@nextcloud.com>
src/libsync/clientsideencryption.cpp

index 2611108d02c3b19a57f68f35b89c85fe092a1500..fd1cd96bb322878cb509a00f15bfa77732b11510 100644 (file)
@@ -1663,7 +1663,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;