Skip to content
Snippets Groups Projects

Add incrDebug to increment debug level up to the maximum allowed.

Merged Karol Krizka requested to merge ddddebug into devel
All threads resolved!
Files
4
@@ -22,7 +22,7 @@ void usage(char *argv[])
std::cerr << "Usage: " << argv[0] << " configfile.json channelname" << std::endl;
std::cerr << "" << std::endl;
std::cerr << "List of options:" << std::endl;
std::cerr << " -d, --debug Enable more verbose printout" << std::endl;
std::cerr << " -d, --debug Enable more verbose printout, use multiple for increased debug level" << std::endl;
std::cerr << "" << std::endl;
std::cerr << "" << std::endl;
}
@@ -52,7 +52,7 @@ int main(int argc, char*argv[])
switch (c)
{
case 'd':
loglevel = logDEBUG;
loglevel = incrDebug(loglevel);
break;
default:
std::cerr << "Invalid option '" << c << "' supplied. Aborting." << std::endl;
Loading