diff --git a/module-apps/application-messages/windows/NewMessage.cpp b/module-apps/application-messages/windows/NewMessage.cpp index 7afbf65ca..5f9841751 100644 --- a/module-apps/application-messages/windows/NewMessage.cpp +++ b/module-apps/application-messages/windows/NewMessage.cpp @@ -75,7 +75,7 @@ namespace gui } else if (auto textData = dynamic_cast(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(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; diff --git a/module-apps/application-messages/windows/SMSTemplatesWindow.cpp b/module-apps/application-messages/windows/SMSTemplatesWindow.cpp index 70bcafdbf..83b174bc0 100644 --- a/module-apps/application-messages/windows/SMSTemplatesWindow.cpp +++ b/module-apps/application-messages/windows/SMSTemplatesWindow.cpp @@ -79,7 +79,7 @@ namespace gui auto phoneNumber = switchData->getPhoneNumber(); app->templatesCallback = [=](std::shared_ptr 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( diff --git a/module-apps/application-messages/windows/SMSThreadViewWindow.cpp b/module-apps/application-messages/windows/SMSThreadViewWindow.cpp index ed9f5f85f..464b43778 100644 --- a/module-apps/application-messages/windows/SMSThreadViewWindow.cpp +++ b/module-apps/application-messages/windows/SMSThreadViewWindow.cpp @@ -85,7 +85,7 @@ namespace gui } if (auto pdata = dynamic_cast(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); }