]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: support extra log origins for '%OG' alias
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 10 Sep 2024 13:39:23 +0000 (15:39 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 26 Sep 2024 14:53:07 +0000 (16:53 +0200)
commitb882402a298b0618299580554c886c35ca27784a
tree7e7d7b2341943cb21d714c833182914473236ade
parentf8bb9d5c5746e9fec48ca5c60ec9ebbdf4ee16ba
MINOR: log: support extra log origins for '%OG' alias

Following previous commits, let's improve log_orig_to_str() so that
extra log origins (registered through log_orig_register()) can be
translated to string from origin ID.

For that, it is required to add eb_32 tree node to log_origin struct in
order to enable quick integer lookup during runtime. Slow name lookup
using the list is acceptable for config parsing, but it is not the case
during runtime when log_orig_to_str() is expected to be used. Also, to
prevent duplicated info, get rid of ->id field and use ->tree.key instead
include/haproxy/log-t.h
src/log.c