From: Felix Weilbach Date: Thu, 23 Sep 2021 12:13:34 +0000 (+0200) Subject: Don't log encryption data in release mode X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~18^2~202^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d6e60cd8d42dd9246e4aad2f0d8c64a5b0841ce2;p=nextcloud-desktop.git 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 --- 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;