Skip to content

Commit

Permalink
ndctl, monitor: fix the severity of "daemon started" message
Browse files Browse the repository at this point in the history
The "daemon started" message was printed as an error and this is
improper. Change it to info() and change the default log level of
monitor to "LOG_INFO".

Signed-off-by: QI Fuli <[email protected]>
Signed-off-by: Vishal Verma <[email protected]>
  • Loading branch information
QIFuli authored and stellarhopper committed Oct 5, 2018
1 parent e46e0de commit b66a540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ndctl/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ int cmd_monitor(int argc, const char **argv, void *ctx)
if (monitor.verbose)
ndctl_set_log_priority((struct ndctl_ctx *)ctx, LOG_DEBUG);
else
ndctl_set_log_priority((struct ndctl_ctx *)ctx, LOG_NOTICE);
ndctl_set_log_priority((struct ndctl_ctx *)ctx, LOG_INFO);

rc = read_config_file((struct ndctl_ctx *)ctx, &monitor, &param);
if (rc)
Expand Down Expand Up @@ -660,7 +660,7 @@ int cmd_monitor(int argc, const char **argv, void *ctx)
err((struct ndctl_ctx *)ctx, "daemon start failed\n");
goto out;
}
err((struct ndctl_ctx *)ctx, "ndctl monitor daemon started\n");
info((struct ndctl_ctx *)ctx, "ndctl monitor daemon started\n");
}

if (parse_monitor_event(&monitor, (struct ndctl_ctx *)ctx))
Expand Down

0 comments on commit b66a540

Please sign in to comment.