aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmdline.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-19 08:35:20 +0100
committerMax Kellermann <max@duempel.org>2009-02-19 08:35:20 +0100
commit0a0736fc4e010db5d17c8aa9a7a71567cdae26ea (patch)
tree2fc175bdacb0d1e56761b8c08498eed22a638da3 /src/cmdline.c
parent84437acffb5996a9ea99b1d2ab96c68e9751b708 (diff)
downloadmpd-0a0736fc4e010db5d17c8aa9a7a71567cdae26ea.tar.gz
mpd-0a0736fc4e010db5d17c8aa9a7a71567cdae26ea.tar.xz
mpd-0a0736fc4e010db5d17c8aa9a7a71567cdae26ea.zip
log: added log_early_init() for early debug messages
Diffstat (limited to 'src/cmdline.c')
-rw-r--r--src/cmdline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmdline.c b/src/cmdline.c
index 71173ae38..43fe46de0 100644
--- a/src/cmdline.c
+++ b/src/cmdline.c
@@ -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");