Limit the maximum log level settable from the command line

This commit is contained in:
Beat Bolli
2020-01-29 00:09:25 +01:00
parent 585a4b1d96
commit e4f8c9f8f4

View File

@@ -653,7 +653,8 @@ main(int argc, char **argv)
config_set_port(&config, optarg, 1); config_set_port(&config, optarg, 1);
break; break;
case 'v': case 'v':
loglevel++; if (loglevel < log_debug)
loglevel++;
break; break;
case 'V': case 'V':
print_version(); print_version();