Skip to content

Fix bootstrap problem with logger function. - #657

Merged
AlbertShown merged 1 commit into
webui-dev:mainfrom
hdijkema:log-fix
Oct 21, 2025
Merged

Fix bootstrap problem with logger function.#657
AlbertShown merged 1 commit into
webui-dev:mainfrom
hdijkema:log-fix

Conversation

@hdijkema

Copy link
Copy Markdown
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 <hans@dijkewijk.nl>
@hdijkema

Copy link
Copy Markdown
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