From 015dde5b3b58fd45d2bcf0d5120b6858ff2c8100 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Mon, 18 Feb 2019 15:00:30 +0100 Subject: [PATCH] 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. --- src/daemon/collectd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.11.0