diff options
author | Max Kellermann <max@duempel.org> | 2009-02-19 08:35:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-19 08:35:20 +0100 |
commit | 0a0736fc4e010db5d17c8aa9a7a71567cdae26ea (patch) | |
tree | 2fc175bdacb0d1e56761b8c08498eed22a638da3 /src/log.c | |
parent | 84437acffb5996a9ea99b1d2ab96c68e9751b708 (diff) | |
download | mpd-0a0736fc4e010db5d17c8aa9a7a71567cdae26ea.tar.gz mpd-0a0736fc4e010db5d17c8aa9a7a71567cdae26ea.tar.xz mpd-0a0736fc4e010db5d17c8aa9a7a71567cdae26ea.zip |
log: added log_early_init() for early debug messages
Diffstat (limited to '')
-rw-r--r-- | src/log.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -217,6 +217,15 @@ parse_log_level(const char *value, unsigned line) } } +void +log_early_init(bool verbose) +{ + if (verbose) + log_threshold = G_LOG_LEVEL_DEBUG; + + log_init_stdout(); +} + void log_init(bool verbose, bool use_stdout) { const struct config_param *param; |