Rewrite log_trace to be thread-safe and some cleanups
This commit is contained in:
5
main.c
5
main.c
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user