journal: check filtering after parsing timestamp, identifier, pid, and so on

Otherwise, filtering regex with '^' does not work.

Fixes a bug in 87a13dabbd (v253).
Fixes #38361.
This commit is contained in:
Yu Watanabe
2025-07-28 00:23:21 +09:00
parent 706e622e88
commit c60a16ba8f

View File

@@ -392,9 +392,6 @@ void manager_process_syslog_message(
if (!client_context_test_priority(context, priority))
return;
if (client_context_check_keep_log(context, msg, strlen(msg)) <= 0)
return;
syslog_ts = msg;
syslog_ts_len = syslog_skip_timestamp(&msg);
if (syslog_ts_len == 0)
@@ -403,6 +400,9 @@ void manager_process_syslog_message(
syslog_parse_identifier(&msg, &identifier, &pid);
if (client_context_check_keep_log(context, msg, strlen(msg)) <= 0)
return;
if (m->config.forward_to_syslog)
forward_syslog_raw(m, priority, buf, raw_len, ucred, tv);