Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 33e302a9ccbcaff5a332461866a26ac7581a6b5a
https://github.com/WebKit/WebKit/commit/33e302a9ccbcaff5a332461866a26ac7581a6b5a
Author: Lauro Moura <[email protected]>
Date: 2026-07-28 (Tue, 28 Jul 2026)
Changed paths:
M Source/WTF/wtf/Assertions.cpp
M Source/WTF/wtf/Assertions.h
M Source/WTF/wtf/Logger.h
M Source/WebKit/glib/environment-variables.md.in
Log Message:
-----------
[GLIB] Add log fallback when journald is not reachable
https://bugs.webkit.org/show_bug.cgi?id=320371
Reviewed by Adrian Perez de Castro.
Currently, when JOURNALD_LOG is enabled, RELEASE_LOG messages are sent
to sd_journal_send_with_location without any fallback. But, according to
this function's documentation:
"If systemd-journald(8) is not running (the socket is not present),
those functions do nothing, and also return 0."
This behavior can lead to lost RELEASE_LOG messages. For example, small CI
runners might not run systemd at all during the tests.
This commit adds a stderr fallback, enabled when the journald's socket
is not found at startup. The new WEBKIT_DEBUG_OUTPUT environment
variable can be set to 'stderr' to replace the journal output, or to
'journal' to disable the fallback completely.
Note that the actual filtering of what would be printed is still
controlled by the WEBKIT_DEBUG variable as usual. That is, "off"
channels are still filtered out.
* Source/WTF/wtf/Assertions.cpp:
* Source/WTF/wtf/Assertions.h:
(wtfLogPriorityName):
* Source/WTF/wtf/Logger.h:
(WTF::Logger::log):
(WTF::Logger::logVerbose):
* Source/WebKit/glib/environment-variables.md.in:
Canonical link: https://commits.webkit.org/318089@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications