aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-28 19:48:53 +0100
committerMax Kellermann <max@duempel.org>2008-12-28 19:48:53 +0100
commitd70c2e228517c60506a98b38d90cc3e939b6331c (patch)
treeafa7e66f2f9de110ebaa2d1c5229787187e3a8e2 /src/log.c
parentcaf47f7893a666a9ea289f2ffdbce528d4ba75bd (diff)
downloadmpd-d70c2e228517c60506a98b38d90cc3e939b6331c.tar.gz
mpd-d70c2e228517c60506a98b38d90cc3e939b6331c.tar.xz
mpd-d70c2e228517c60506a98b38d90cc3e939b6331c.zip
log: merged initLog() and open_log_files().
The logging library currently has 3 constructor functions: initLog(), open_log_files(), setup_log_output(), called in this order. Merged the first two.
Diffstat (limited to '')
-rw-r--r--src/log.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/log.c b/src/log.c
index b3f8410ee..38e0a8f10 100644
--- a/src/log.c
+++ b/src/log.c
@@ -115,7 +115,7 @@ parse_log_level(const char *value, unsigned line)
value, line);
}
-void initLog(bool verbose)
+void log_init(bool verbose, bool use_stdout)
{
ConfigParam *param;
@@ -127,11 +127,6 @@ void initLog(bool verbose)
log_threshold = G_LOG_LEVEL_DEBUG;
else if ((param = getConfigParam(CONF_LOG_LEVEL)) != NULL)
log_threshold = parse_log_level(param->value, param->line);
-}
-
-void open_log_files(bool use_stdout)
-{
- ConfigParam *param;
if (use_stdout)
return;