2
0
Fork 0

[core] Don't print debug message about config parser when there's no problem

This commit is contained in:
Thomas Porzelt 2009-09-05 12:09:43 +02:00
parent e1193ec9f6
commit cd10b26497
1 changed files with 3 additions and 1 deletions

View File

@ -129,7 +129,9 @@ int main(int argc, char *argv[]) {
millis = (d - s) / 1000;
micros = (d - s - millis) %1000;
DEBUG(srv, "parsed config file in %lu seconds, %lu milliseconds, %lu microseconds", s, millis, micros);
DEBUG(srv, "option_stack: %u action_list_stack: %u (should be 0:1)", g_queue_get_length(ctx->option_stack), g_queue_get_length(ctx->action_list_stack));
if (g_queue_get_length(ctx->option_stack) != 0 || g_queue_get_length(ctx->action_list_stack))
DEBUG(srv, "option_stack: %u action_list_stack: %u (should be 0:1)", g_queue_get_length(ctx->option_stack), g_queue_get_length(ctx->action_list_stack));
config_parser_finish(srv, ctx_stack, FALSE);
}