lower log priority for fatal errors from CRIT to ERR

found by Anna, thanks!
This commit is contained in:
Omar Polo 2021-04-28 12:43:17 +00:00
parent 419a423520
commit e6ca8eb156
2 changed files with 5 additions and 1 deletions

View File

@ -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

2
log.c
View File

@ -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);