forked from github/server
fix find_spell and create_spell to only create each spell once.
kill register_spell make some critbit changes (need to transfer them upstream)
This commit is contained in:
parent
e2a6bbbb72
commit
f2643e79b6
34
src/main.c
34
src/main.c
|
@ -119,23 +119,23 @@ static int parse_args(int argc, char **argv, int *exitcode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (verbosity) {
|
switch (verbosity) {
|
||||||
case 0:
|
case 0:
|
||||||
log_stderr = 0;
|
log_stderr = 0;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
log_stderr = LOG_CPERROR;
|
log_stderr = LOG_CPERROR;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
log_stderr = LOG_CPERROR|LOG_CPWARNING;
|
log_stderr = LOG_CPERROR|LOG_CPWARNING;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG;
|
log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG|LOG_CPINFO;
|
log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG|LOG_CPINFO;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (run_tests) {
|
if (run_tests) {
|
||||||
*exitcode = RunAllTests();
|
*exitcode = RunAllTests();
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue