util/log: Provide util::log::NO_RATE_LIMIT to avoid rate limits

This commit is contained in:
Anthony Towns
2025-12-08 22:29:39 +10:00
parent 72e92d67df
commit f69d1ae56d
6 changed files with 47 additions and 26 deletions

View File

@@ -572,8 +572,7 @@ void BCLog::LogRateLimiter::Reset()
}
for (const auto& [source_loc, stats] : source_locations) {
if (stats.m_dropped_bytes == 0) continue;
LogPrintLevel_(
LogFlags::ALL, Level::Warning, /*should_ratelimit=*/false,
LogWarning(util::log::NO_RATE_LIMIT,
"Restarting logging from %s:%d (%s): %d bytes were dropped during the last %ss.",
source_loc.file_name(), source_loc.line(), source_loc.function_name_short(),
stats.m_dropped_bytes, Ticks<std::chrono::seconds>(m_reset_window));