summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7554d50)
raw | patch | inline | side by side (parent: 7554d50)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 24 Jun 2014 15:47:08 +0000 (17:47 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 24 Jun 2014 15:47:08 +0000 (17:47 +0200) |
src/logfile.c | patch | blob | history |
diff --git a/src/logfile.c b/src/logfile.c
index 0f20f3ca117d912b9df8b4d5118b93ee9660ead0..63448cb6c4e9f61cc611c71ed2c37840d160e17e 100644 (file)
--- a/src/logfile.c
+++ b/src/logfile.c
{
if (0 == strcasecmp (key, "LogLevel")) {
log_level = parse_log_severity(value);
- if (log_level == -1) return 1; /* to keep previous behaviour */
+ if (log_level < 0) {
+ log_level = LOG_INFO;
+ ERROR ("logfile: invalid loglevel [%s] defaulting to 'info'", value);
+ return (1);
+ }
}
else if (0 == strcasecmp (key, "File")) {
sfree (log_file);