Changeset View
Changeset View
Standalone View
Standalone View
src/util.cpp
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Lines | const CLogCategoryDesc LogCategories[] = { | ||||
{BCLog::RAND, "rand"}, | {BCLog::RAND, "rand"}, | ||||
{BCLog::PRUNE, "prune"}, | {BCLog::PRUNE, "prune"}, | ||||
{BCLog::PROXY, "proxy"}, | {BCLog::PROXY, "proxy"}, | ||||
{BCLog::MEMPOOLREJ, "mempoolrej"}, | {BCLog::MEMPOOLREJ, "mempoolrej"}, | ||||
{BCLog::LIBEVENT, "libevent"}, | {BCLog::LIBEVENT, "libevent"}, | ||||
{BCLog::COINDB, "coindb"}, | {BCLog::COINDB, "coindb"}, | ||||
{BCLog::QT, "qt"}, | {BCLog::QT, "qt"}, | ||||
{BCLog::LEVELDB, "leveldb"}, | {BCLog::LEVELDB, "leveldb"}, | ||||
{BCLog::HEADERTIMESTAMPS, "headertimestamps"}, | |||||
{BCLog::ALL, "1"}, | {BCLog::ALL, "1"}, | ||||
{BCLog::ALL, "all"}, | {BCLog::ALL, "all"}, | ||||
}; | }; | ||||
bool GetLogCategory(uint32_t *f, const std::string *str) { | bool GetLogCategory(uint32_t *f, const std::string *str) { | ||||
if (f && str) { | if (f && str) { | ||||
if (*str == "") { | if (*str == "") { | ||||
*f = BCLog::ALL; | *f = BCLog::ALL; | ||||
▲ Show 20 Lines • Show All 622 Lines • Show Last 20 Lines |