From 7c75cdaf9d61ed60e710101f20a03a9f9f56474d Mon Sep 17 00:00:00 2001 From: Jakub Pyszczak Date: Fri, 22 Oct 2021 14:02:11 +0200 Subject: [PATCH] [EGD-7849] Fixed compilation with sensitive logs Fixed compilation with sensitive data flag being turned on. --- .../models/network/SimContactsRepository.cpp | 3 ++- module-bluetooth/Bluetooth/interface/profiles/GAP/GAP.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module-apps/application-settings/models/network/SimContactsRepository.cpp b/module-apps/application-settings/models/network/SimContactsRepository.cpp index b105221862c8c1d3493b2765086665e76782643c..a815b6ef73dff706ab6ad91b3ff4e8473ac23a9f 100644 --- a/module-apps/application-settings/models/network/SimContactsRepository.cpp +++ b/module-apps/application-settings/models/network/SimContactsRepository.cpp @@ -145,7 +145,8 @@ void SimContactsRepository::updateImportedRecords(const std::vector &data) { for (auto record : data) { - LOG_SENSITIVE("%s: %s %s, Number: %s", + LOG_SENSITIVE(LOGDEBUG, + "%s: %s %s, Number: %s", name.c_str(), record.primaryName.c_str(), record.alternativeName.c_str(), diff --git a/module-bluetooth/Bluetooth/interface/profiles/GAP/GAP.cpp b/module-bluetooth/Bluetooth/interface/profiles/GAP/GAP.cpp index e4ed1aa358e3ae0847806e6bea702763cf773ffa..7911191c4285b8810ce3dd9e4f89625d1e6ddfa4 100644 --- a/module-bluetooth/Bluetooth/interface/profiles/GAP/GAP.cpp +++ b/module-bluetooth/Bluetooth/interface/profiles/GAP/GAP.cpp @@ -246,7 +246,7 @@ namespace bluetooth } else { SSPname = reinterpret_cast(&packet[9]); - LOG_SENSITIVE("Name: %s", SSPname.c_str()); + LOG_SENSITIVE(LOGDEBUG, "Name: %s", SSPname.c_str()); Devicei newDevice(SSPname); newDevice.setAddress(&SSPaddress); devices.push_back(newDevice);