aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/log.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index e7326517e..575ba4301 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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;