daemon: handle correctly log levels given with -l.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 25 Sep 2012 17:08:21 +0000 (20:08 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 26 Oct 2012 16:03:50 +0000 (19:03 +0300)
src/daemon/config.c

index 9363cef..9202939 100644 (file)
@@ -230,7 +230,7 @@ void mrp_parse_cmdline(mrp_context_t *ctx, int argc, char **argv)
             if (ctx->log_mask < 0)
                 print_usage(argv[0], EINVAL, "invalid log level '%s'", optarg);
             else
-                mrp_log_set_target(ctx->log_target);
+                mrp_log_set_mask(ctx->log_mask);
             break;
 
         case 't':