Delete more CCs #381

This commit is contained in:
Duke
2024-02-10 23:16:34 -05:00
parent 7791d50230
commit 0cbce3b0c8
2 changed files with 1 additions and 165 deletions

View File

@@ -105,14 +105,4 @@ CPubKey pubkey2pk(std::vector<uint8_t> vpubkey)
void CCLogPrintStr(const char *category, int level, const std::string &str)
{
if (level < 0)
level = 0;
if (level > CCLOG_MAXLEVEL)
level = CCLOG_MAXLEVEL;
for (int i = level; i <= CCLOG_MAXLEVEL; i++)
if (LogAcceptCategory((std::string(category) + std::string("-") + std::to_string(i)).c_str()) || // '-debug=cctokens-0', '-debug=cctokens-1',...
i == 0 && LogAcceptCategory(std::string(category).c_str())) { // also supporting '-debug=cctokens' for CCLOG_INFO
LogPrintStr(str);
break;
}
}