From f8e79ee28035fe75983d48b18537f186ea73ff44 Mon Sep 17 00:00:00 2001 From: wdfk-prog <1425075683@qq.com> Date: Sat, 25 Oct 2025 15:48:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:[ulog][backend]filter=E4=B8=8D=E5=BA=94?= =?UTF-8?q?=E4=B8=8EULOG=5FUSING=5FCOLOR=E5=8F=8AULOG=5FUSING=5FSYSLOG?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=9C=89=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/utilities/ulog/ulog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c index b92787f7159..52ca55de106 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);