projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3344 from Self-Perfection/patch-2
[collectd.git]
/
src
/
logfile.c
diff --git
a/src/logfile.c
b/src/logfile.c
index
fa56a1b
..
ef75052
100644
(file)
--- a/
src/logfile.c
+++ b/
src/logfile.c
@@
-28,8
+28,8
@@
#include "collectd.h"
#include "collectd.h"
-#include "common.h"
#include "plugin.h"
#include "plugin.h"
+#include "utils/common/common.h"
#if COLLECT_DEBUG
static int log_level = LOG_DEBUG;
#if COLLECT_DEBUG
static int log_level = LOG_DEBUG;
@@
-52,8
+52,8
@@
static int logfile_config(const char *key, const char *value) {
log_level = parse_log_severity(value);
if (log_level < 0) {
log_level = LOG_INFO;
log_level = parse_log_severity(value);
if (log_level < 0) {
log_level = LOG_INFO;
-
ERROR
("logfile: invalid loglevel [%s] defaulting to 'info'", value);
- return
1
;
+
WARNING
("logfile: invalid loglevel [%s] defaulting to 'info'", value);
+ return
0
;
}
} else if (0 == strcasecmp(key, "File")) {
sfree(log_file);
}
} else if (0 == strcasecmp(key, "File")) {
sfree(log_file);