Ilogger - Separate behaviour for user exposed and not exposed loggers

This commit is contained in:
Abdullah Tahiri
2023-05-20 21:49:40 +02:00
committed by abdullahtahiriyo
parent 9d9f928b2d
commit 5f52885fbf
5 changed files with 24 additions and 11 deletions

View File

@@ -476,8 +476,11 @@ void ReportOutput::SendLog(const std::string& notifiername, const std::string& m
Base::IntendedRecipient recipient, Base::ContentType content)
{
(void) notifiername;
(void) recipient;
(void) content;
// Do not log translated messages, or messages intended only to the user to the Report View
if( recipient == Base::IntendedRecipient::User ||
content == Base::ContentType::Translated)
return;
ReportHighlighter::Paragraph style = ReportHighlighter::LogText;
switch (level) {