projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b9c7b2
)
Do not suggest to read the logs if parsing config fails
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Mon, 18 Feb 2019 14:00:30 +0000
(15:00 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Mon, 18 Feb 2019 14:00:30 +0000
(15:00 +0100)
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
patch
|
blob
|
history
diff --git
a/src/daemon/collectd.c
b/src/daemon/collectd.c
index
28fa715
..
a462005
100644
(file)
--- 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;
}