Skip to content

Commit f8e79ee

Browse files
committed
fix:[ulog][backend]filter不应与ULOG_USING_COLOR及ULOG_USING_SYSLOG配置有关
1 parent 0cf096e commit f8e79ee

File tree

1 file changed

+3
-3
lines changed
  • components/utilities/ulog

1 file changed

+3
-3
lines changed

components/utilities/ulog/ulog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,14 +524,14 @@ static void ulog_output_to_all_backend(rt_uint32_t level, const char *tag, rt_bo
524524
{
525525
continue;
526526
}
527-
#if !defined(ULOG_USING_COLOR) || defined(ULOG_USING_SYSLOG)
528-
backend->output(backend, level, tag, is_raw, log, len);
529-
#else
530527
if (backend->filter && backend->filter(backend, level, tag, is_raw, log, len) == RT_FALSE)
531528
{
532529
/* backend's filter is not match, so skip output */
533530
continue;
534531
}
532+
#if !defined(ULOG_USING_COLOR) || defined(ULOG_USING_SYSLOG)
533+
backend->output(backend, level, tag, is_raw, log, len);
534+
#else
535535
if (backend->support_color || is_raw)
536536
{
537537
backend->output(backend, level, tag, is_raw, log, len);

0 commit comments

Comments
 (0)