M module-apps/application-messages/windows/NewMessage.cpp => module-apps/application-messages/windows/NewMessage.cpp +3 -3
@@ 75,7 75,7 @@ namespace gui
}
else if (auto textData = dynamic_cast<SMSTextData *>(data); textData != nullptr) {
const auto &text = textData->text;
- LOG_INFO("Received sms text data \"%s\"", text.c_str());
+ LOG_INFO("Received sms text data");
if (textData->concatenate == SMSTextData::Concatenate::True) {
message->addText(text);
}
@@ 86,10 86,10 @@ namespace gui
}
else if (auto sendRequest = dynamic_cast<SMSSendRequest *>(data); sendRequest != nullptr) {
phoneNumber = sendRequest->getPhoneNumber();
- LOG_INFO("Received sms send request to number: %s", phoneNumber.getFormatted().c_str());
+ LOG_INFO("Received sms send request");
auto retContact = DBServiceAPI::MatchContactByPhoneNumber(application, phoneNumber);
if (!retContact) {
- LOG_WARN("Not valid contact for number %s", phoneNumber.getEntered().c_str());
+ LOG_WARN("No valid contact for given number");
recipient->setText(phoneNumber.getFormatted());
message->setText(sendRequest->textData);
return;
M module-apps/application-messages/windows/SMSTemplatesWindow.cpp => module-apps/application-messages/windows/SMSTemplatesWindow.cpp +1 -1
@@ 79,7 79,7 @@ namespace gui
auto phoneNumber = switchData->getPhoneNumber();
app->templatesCallback = [=](std::shared_ptr<SMSTemplateRecord> templ) {
- LOG_DEBUG("SMS template id = %" PRIu32 "sent to %s", templ->ID, phoneNumber.getFormatted().c_str());
+ LOG_DEBUG("SMS template id = %" PRIu32 "sent", templ->ID);
app->sendSms(phoneNumber, templ->text);
app::manager::Controller::switchBack(app,
std::make_unique<app::manager::SwitchBackRequest>(
M module-apps/application-messages/windows/SMSThreadViewWindow.cpp => module-apps/application-messages/windows/SMSThreadViewWindow.cpp +1 -1
@@ 85,7 85,7 @@ namespace gui
}
if (auto pdata = dynamic_cast<SMSTextData *>(data)) {
auto txt = pdata->text;
- LOG_INFO("received sms templates data \"%s\"", txt.c_str());
+ LOG_INFO("received sms templates data");
pdata->concatenate == SMSTextData::Concatenate::True ? smsModel->smsInput->inputText->addText(txt)
: smsModel->smsInput->inputText->setText(txt);
}