From: Ruben Kerkhof Date: Mon, 18 Feb 2019 14:00:30 +0000 (+0100) Subject: Do not suggest to read the logs if parsing config fails X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=015dde5b3b58fd45d2bcf0d5120b6858ff2c8100;p=collectd.git Do not suggest to read the logs if parsing config fails There are no logs at this point, all output goes to stderr. Furthermore, spreading a log message over two lines is bad practice. --- diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c index 28fa7155..a4620053 100644 --- a/src/daemon/collectd.c +++ b/src/daemon/collectd.c @@ -357,8 +357,7 @@ static int configure_collectd(struct cmdline_config *config) { * Also, this will automatically load modules. */ if (cf_read(config->configfile)) { - fprintf(stderr, "Error: Reading the config file failed!\n" - "Read the logs for details.\n"); + fprintf(stderr, "Error: Reading the config file failed!\n"); return 1; }