Changeset View
Changeset View
Standalone View
Standalone View
src/logging.h
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | |||||
/** Returns a string with the supported log categories */ | /** Returns a string with the supported log categories */ | ||||
std::string ListLogCategories(); | std::string ListLogCategories(); | ||||
/** Return true if str parses as a log category and set the flag */ | /** Return true if str parses as a log category and set the flag */ | ||||
bool GetLogCategory(BCLog::LogFlags &flag, const std::string &str); | bool GetLogCategory(BCLog::LogFlags &flag, const std::string &str); | ||||
// Be conservative when using LogPrintf/error or other things which | // Be conservative when using LogPrintf/error or other things which | ||||
// unconditionally log to debug.log! It should not be the case that an inbound | // unconditionally log to debug.log! It should not be the case that an inbound | ||||
// peer can fill up a users disk with debug.log entries. | // peer can fill up a user's disk with debug.log entries. | ||||
static inline void MarkUsed() {} | static inline void MarkUsed() {} | ||||
template <typename T, typename... Args> | template <typename T, typename... Args> | ||||
static inline void MarkUsed(const T &t, const Args &... args) { | static inline void MarkUsed(const T &t, const Args &... args) { | ||||
(void)t; | (void)t; | ||||
MarkUsed(args...); | MarkUsed(args...); | ||||
} | } | ||||
Show All 32 Lines |