]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
ulogd: fix loglevel handling
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>
Fri, 7 Mar 2014 22:03:48 +0000 (23:03 +0100)
committerEric Leblond <eric@regit.org>
Fri, 7 Mar 2014 22:07:11 +0000 (23:07 +0100)
It was always default if not specified by command parameter.

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
src/ulogd.c

index 810f8284a7554b36ca25b5bfd57d9deefa5c7160..e7cde39d7e466e4a7270903ae389f242a46a72df 100644 (file)
@@ -1383,9 +1383,10 @@ int main(int argc, char* argv[])
        }
 
        /* command line has precedence on config file */
-       if (loglevel)
+       if (loglevel) {
                loglevel_ce.u.value = loglevel;
                loglevel_ce.flag |= CONFIG_FLAG_VAL_PROTECTED;
+       }
 
        if (ulogd_pidfile) {
                if (create_pidfile() < 0)