Merge commit 'athcx/master'
[paraslash.git] / write.c
diff --git a/write.c b/write.c
index e28e1c01e3f58a56fa8a745c5540ff319bf680be..238f2ab9d4d1c39f4b4b0e0bca46632c6c44762c 100644 (file)
--- a/write.c
+++ b/write.c
@@ -122,7 +122,8 @@ register_check_wav:
        s->timeout.tv_usec = 1;
 }
 
-INIT_STDERR_LOGGING(conf.loglevel_arg)
+static int loglevel;
+INIT_STDERR_LOGGING(loglevel)
 
 static struct writer_node_group *check_args(void)
 {
@@ -130,6 +131,7 @@ static struct writer_node_group *check_args(void)
        struct writer_node_group *g = NULL;
        struct initial_delay_task *idt = &the_initial_delay_task;
 
+       loglevel = get_loglevel_by_name(conf.loglevel_arg);
        if (conf.start_time_given) {
                long unsigned sec, usec;
                if (sscanf(conf.start_time_arg, "%lu:%lu",