BCLog::LogRateLimiter::Consume

Consumes source_loc's available bytes corresponding to the size of the (formatted) str and returns its status.

Synopsis

Declared in <logging.h>

[[nodiscard, requires_capability(0x7f2e42419db8)]]
Status
Consume(
    SourceLocation const& source_loc,
    std::string const& str);

Return Value

The suppression status for this location after consuming the string.

NOTE

The return value should not be discarded.

Parameters

NameDescription
source_locThe source location the log entry originates from.
strThe formatted log string whose size is charged against the location's budget.