Skip to content
Snippets Groups Projects
Commit 7fe3e874 authored by Brad King's avatar Brad King
Browse files

cmCPackLog: Fix support for multiple log message tags

Fix logic from commit bbf1c2d2 (ENH: More improvements and add
logging, 2006-01-02, v2.4.0~712) to append to the accumulated tag string
instead of overwriting it for each type of message.

Issue: #19610
parent 74f2c0ea
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ void cmCPackLog::Log(int tag, const char* file, int line, const char* msg,
if (!tagString.empty()) {
tagString += ",";
}
tagString = "VERBOSE";
tagString += "VERBOSE";
}
}
if (tag & LOG_WARNING) {
......@@ -93,7 +93,7 @@ void cmCPackLog::Log(int tag, const char* file, int line, const char* msg,
if (!tagString.empty()) {
tagString += ",";
}
tagString = "WARNING";
tagString += "WARNING";
}
}
if (tag & LOG_ERROR) {
......@@ -103,7 +103,7 @@ void cmCPackLog::Log(int tag, const char* file, int line, const char* msg,
if (!tagString.empty()) {
tagString += ",";
}
tagString = "ERROR";
tagString += "ERROR";
}
}
if (tag & LOG_DEBUG && this->Debug) {
......@@ -113,7 +113,7 @@ void cmCPackLog::Log(int tag, const char* file, int line, const char* msg,
if (!tagString.empty()) {
tagString += ",";
}
tagString = "DEBUG";
tagString += "DEBUG";
}
useFileAndLine = true;
}
......@@ -124,7 +124,7 @@ void cmCPackLog::Log(int tag, const char* file, int line, const char* msg,
if (!tagString.empty()) {
tagString += ",";
}
tagString = "VERBOSE";
tagString += "VERBOSE";
}
}
if (this->Quiet) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment