mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
log: fix syslog not respecting the configured log level
This commit is contained in:
parent
3cc94ab4e8
commit
4f1aaccf81
2 changed files with 7 additions and 0 deletions
|
|
@ -56,6 +56,10 @@
|
|||
### Deprecated
|
||||
### Removed
|
||||
### Fixed
|
||||
|
||||
* Log-level not respected by syslog.
|
||||
|
||||
|
||||
### Security
|
||||
### Contributors
|
||||
|
||||
|
|
|
|||
3
log.c
3
log.c
|
|
@ -105,6 +105,9 @@ _sys_log(enum log_class log_class, const char *module,
|
|||
if (!do_syslog)
|
||||
return;
|
||||
|
||||
if (log_class > log_level)
|
||||
return;
|
||||
|
||||
/* Map our log level to syslog's level */
|
||||
int level = log_level_map[log_class].syslog_equivalent;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue