diff options
| author | wdfk-prog <[email protected]> | 2025-10-25 15:48:50 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-10-27 17:09:09 +0800 |
| commit | e5556be19fd5ac4212e20f94fdd51b828298de39 (patch) | |
| tree | 67df16307c138cb7159e37aa144c581213aac954 /components | |
| parent | ff973e548ba7edc1a2762b117bd38fa43aff0139 (diff) | |
fix:[ulog][backend]filter不应与ULOG_USING_COLOR及ULOG_USING_SYSLOG配置有关
Diffstat (limited to 'components')
| -rw-r--r-- | components/utilities/ulog/ulog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c index b92787f715..52ca55de10 100644 --- a/components/utilities/ulog/ulog.c +++ b/components/utilities/ulog/ulog.c @@ -524,14 +524,14 @@ static void ulog_output_to_all_backend(rt_uint32_t level, const char *tag, rt_bo { continue; } -#if !defined(ULOG_USING_COLOR) || defined(ULOG_USING_SYSLOG) - backend->output(backend, level, tag, is_raw, log, len); -#else if (backend->filter && backend->filter(backend, level, tag, is_raw, log, len) == RT_FALSE) { /* backend's filter is not match, so skip output */ continue; } +#if !defined(ULOG_USING_COLOR) || defined(ULOG_USING_SYSLOG) + backend->output(backend, level, tag, is_raw, log, len); +#else if (backend->support_color || is_raw) { backend->output(backend, level, tag, is_raw, log, len); |
