mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-03 07:15:29 -04: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
|
### Deprecated
|
||||||
### Removed
|
### Removed
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
* Log-level not respected by syslog.
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
### Contributors
|
### Contributors
|
||||||
|
|
||||||
|
|
|
||||||
3
log.c
3
log.c
|
|
@ -105,6 +105,9 @@ _sys_log(enum log_class log_class, const char *module,
|
||||||
if (!do_syslog)
|
if (!do_syslog)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (log_class > log_level)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Map our log level to syslog's level */
|
/* Map our log level to syslog's level */
|
||||||
int level = log_level_map[log_class].syslog_equivalent;
|
int level = log_level_map[log_class].syslog_equivalent;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue