Added log level 6 to reduce spam on level 5

Log level 5 is still default
This commit is contained in:
SChernykh
2021-08-25 09:38:47 +02:00
parent 09aedd9f9a
commit a27577f735
5 changed files with 5 additions and 5 deletions

View File

@@ -106,7 +106,7 @@ static int do_status(p2pool *m_pool, const char * /* args */)
static int do_loglevel(p2pool * /* m_pool */, const char *args)
{
int level = atoi(args);
level = std::min(std::max(level, 0), 5);
level = std::min(std::max(level, 0), 6);
log::GLOBAL_LOG_LEVEL = level;
LOGINFO(0, "log level set to " << level);
return 0;