Skip to content
Commit 72cdbcbb authored by Ben Wolsieffer's avatar Ben Wolsieffer Committed by Alberto Escolar
Browse files

logging: consistently retrieve source ID from remote messages



The log message header "source" field for messages received from a
remote domain contains the source ID, rather than a pointer to the
source data (which would not be valid in the local domain).

msg_filter_check() did not handle this case and obtained a garbage source
ID for remote log messages. This caused an assertion failure in
filter_get().

Consistently handle this by adding a log_msg_get_source_id() function
that returns the source ID for both local and remote messages. This
function was implemented based on code factored out of
log_output_msg_process().

Signed-off-by: default avatarBen Wolsieffer <benwolsieffer@gmail.com>
parent 03c5c0f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment