log: added log_early_init() for early debug messages

This commit is contained in:
Max Kellermann
2009-02-19 08:35:20 +01:00
parent 84437acffb
commit 0a0736fc4e
3 changed files with 25 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include "cmdline.h"
#include "path.h"
#include "log.h"
#include "conf.h"
#include "decoder_list.h"
#include "config.h"
@@ -123,6 +124,10 @@ void parseOptions(int argc, char **argv, Options *options)
if (option_version)
version();
/* initialize the logging library, so the configuration file
parser can use it already */
log_early_init(options->verbose);
if (option_create_db && option_no_create_db)
g_error("Cannot use both --create-db and --no-create-db\n");