aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-04-28 12:43:17 +0000
committerOmar Polo <op@omarpolo.com>2021-04-28 12:43:17 +0000
commite6ca8eb1561ade7484a0249ffd1234cdf94e2562 (patch)
tree69e25cc6a204c67df6e823ce091324b0888a077b
parent419a4235208ba879e00b9a7c6065485e8e990814 (diff)
lower log priority for fatal errors from CRIT to ERR
found by Anna, thanks!
-rw-r--r--ChangeLog4
-rw-r--r--log.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 95c4089..fa5c71c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-04-27 Omar Polo <op@omarpolo.com>
+
+ * log.c (fatal): lower the log priority for fatal errors from CRIT to ERR
+
2021-04-25 Omar Polo <op@omarpolo.com>
* server.c (open_dir): sort the auto index alphabetically
diff --git a/log.c b/log.c
index d41c9e3..c86f0e0 100644
--- a/log.c
+++ b/log.c
@@ -65,7 +65,7 @@ fatal(const char *fmt, ...)
vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
} else
- vsyslog(LOG_DAEMON | LOG_CRIT, fmt, ap);
+ vsyslog(LOG_DAEMON | LOG_ERR, fmt, ap);
va_end(ap);
exit(1);