Rewrite log_trace to be thread-safe and some cleanups

This commit is contained in:
2016-08-08 22:31:29 +03:00
parent e9f3673bfd
commit dcd58d8281
8 changed files with 127 additions and 74 deletions

5
main.c
View File

@@ -10,7 +10,7 @@
static void usage(char *argv)
{
fprintf( stderr,
log_trace( ERROR,
"Usage:\n%s start|stop|restart [--daemonize=yes|no]\n",
argv );
}
@@ -45,9 +45,10 @@ int main(int argc, char *argv[])
}
}
if (confparse() != 0) {
fprintf(stderr, "Failed to parse the conf!");
log_trace(ERROR, "Failed to parse the conf!");
exit(EXIT_FAILURE);
}
log_trace(VERBOSE, "Conf parser finished successfully");
//confexport();
if (task == 2 || task == 3) {