Skip to content

Conversation

@hdijkema
Copy link
Contributor

Fix bootstrap problem with logger function.

To intercept this with a log handler, it must be possible to set
the log handler before any logging takes place.

This logger_func / logger_user_data cannot be part of webui_core_t,
because logging is already used in _webui_init() and _webui of
type webui_core_t gets reset to 0 in _webui_init().

To intercept this with a log handler, it must be possible
to set the log handler before any logging takes place.

This logger_func / logger_user_data cannot be part of webui_core_t,
because logging is already used in _webui_init() and _webui of
type webui_core_t gets reset to 0 in _webui_init().


Signed-off-by: Hans Dijkema <[email protected]>
@hdijkema
Copy link
Contributor Author

Also va_end needs to complement va_start (otherwise this could result in a memory leak or other problems).
It's required. So probably my mistake earlier.

@AlbertShown AlbertShown merged commit df55b33 into webui-dev:main Oct 21, 2025
23 of 24 checks passed
@hdijkema hdijkema deleted the log-fix branch October 21, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants