ConfigureLog: De-duplicate event backtrace and check key generation

All event kinds have these fields, so centralize their implementation.
This commit is contained in:
Brad King
2023-01-30 10:37:33 -05:00
parent e86bebfd14
commit 0a48d8fe5c
5 changed files with 10 additions and 14 deletions
+1 -3
View File
@@ -74,9 +74,7 @@ void WriteMessageEvent(cmConfigureLog& log, cmMakefile const& mf,
static const std::vector<unsigned long> LogVersionsWithMessageV1{ 1 };
if (log.IsAnyLogVersionEnabled(LogVersionsWithMessageV1)) {
log.BeginEvent("message-v1");
log.WriteBacktrace(mf);
log.WriteChecks(mf);
log.BeginEvent("message-v1", mf);
log.WriteLiteralTextBlock("message"_s, message);
log.EndEvent();
}