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>
Mon, 27 Sep 2021 19:50:38 +0000 (19:50 +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 a5621409ad8b537011852f9379fb952b65cae677..1deada948f94915ce099a982a7b7a63853fc854b 100644 (file)
@@ -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;