Add SCOPE_INFO_FMT for CheckCaches

This commit is contained in:
Jonathan G Rennison
2023-04-23 11:41:38 +01:00
parent 341c0a9524
commit 7a836ee50f

View File

@@ -85,6 +85,7 @@
#include "event_logs.h"
#include "tunnelbridge.h"
#include "worker_thread.h"
#include "scope_info.h"
#include "linkgraph/linkgraphschedule.h"
#include "tracerestrict.h"
@@ -1472,6 +1473,8 @@ void CheckCaches(bool force_check, std::function<void(const char *)> log, CheckC
if (desync_level == 1 && _scaled_date_ticks % 500 != 0) return;
}
SCOPE_INFO_FMT([flags], "CheckCaches: %X", flags);
std::vector<std::string> saved_messages;
std::function<void(const char *)> log_orig;
if (flags & CHECK_CACHE_EMIT_LOG) {