Rename TARGET field to "COMPONENT" for clarity.

"Target" is what's it named in the source, but it seems too confusing.
This commit is contained in:
Dale Glass 2022-06-27 20:07:00 +02:00
parent 6110da720e
commit 2a919e35f4

View file

@ -271,7 +271,7 @@ QString LogHandler::printMessage(LogMsgType type, const QMessageLogContext& cont
QByteArray sd_priority = QString("PRIORITY=%1").arg(priority).toUtf8();
QByteArray sd_category = QString("CATEGORY=%1").arg(context.category).toUtf8();
QByteArray sd_tid = QString("TID=%1").arg((qlonglong)QThread::currentThreadId()).toUtf8();
QByteArray sd_target = QString("TARGET=%1").arg(_targetName).toUtf8();
QByteArray sd_target = QString("COMPONENT=%1").arg(_targetName).toUtf8();
std::vector<struct iovec> fields;
addString(fields, sd_message);