Branch: refs/heads/webkitglib/2.54
  Home:   https://github.com/WebKit/WebKit
  Commit: 28aeac3b935d9575b86b4fab77bed29af6d093b9
      
https://github.com/WebKit/WebKit/commit/28aeac3b935d9575b86b4fab77bed29af6d093b9
  Author: Lauro Moura <[email protected]>
  Date:   2026-08-17 (Mon, 17 Aug 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:
  -----------
  Cherry-pick 318089@main (33e302a9ccbc). 
https://bugs.webkit.org/show_bug.cgi?id=320371

    [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

Canonical link: https://commits.webkit.org/317695.106@webkitglib/2.54



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to