X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flogfile.c;h=ef75052a522b32f446dfbdc1e61b01ae77a45014;hb=48622c3d7c8c0d3ab07cda8a1947c33bfe31df73;hp=fa56a1bcc95e790d5aac21d4aa42394fc5548835;hpb=c00630eab6161514c1044e8adb2895f179a535da;p=collectd.git diff --git a/src/logfile.c b/src/logfile.c index fa56a1bc..ef75052a 100644 --- a/src/logfile.c +++ b/src/logfile.c @@ -28,8 +28,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #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; - 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);