Skip to content

Backport upstream logging#186

Open
arctic-alpaca wants to merge 5 commits into
cyberus-technology:gardenlinuxfrom
arctic-alpaca:upstream-logging
Open

Backport upstream logging#186
arctic-alpaca wants to merge 5 commits into
cyberus-technology:gardenlinuxfrom
arctic-alpaca:upstream-logging

Conversation

@arctic-alpaca

@arctic-alpaca arctic-alpaca commented Jul 24, 2026

Copy link
Copy Markdown

Reverts our fork-local commits for parity with upstream, then reintroduces our custom version print on startup.

Relates to https://github.com/cobaltcore-dev/cobaltcore/issues/557
Relates to https://github.com/cobaltcore-dev/cobaltcore/issues/639

Libvirt PR: https://gitlab.cyberus-technology.de/cyberus/cloud/libvirt/-/merge_requests/264

arctic-alpaca and others added 5 commits July 24, 2026 09:42
This reverts commit f795caf.

On-behalf-of: SAP julian.schindel@sap.com
Signed-off-by: Julian Schindel <julian.schindel@cyberus-technology.de>
Add support for formatting logs following the popular glog crate style.
In particular this can use local or UTC time along with a single
character level.

As an implementation detail of that implement finegrained date time log
outputs including both local and UTC variants.

Signed-off-by: Rob Bradford <rbradford@meta.com>
Assisted-by: Claude:Opus-4.6
(cherry picked from commit e0c68db)
Local-time log fields called `jiff::Zoned::now()`, which resolves the
system timezone on every record by reading
`/etc/localtime`/`/etc/timezone` if it doesn't hit the cached version.
This cache miss could then cause a seccomp violation depending on the
thread it was run from.

Avoid this by capturing the value in `Logger`. This avoids opening the
seccomp filter for the whole process.

Signed-off-by: Dylan Reid <dgreid@fb.com>
(cherry picked from commit b88d5de)
This reverts commit 3caabf4.

On-behalf-of: SAP julian.schindel@sap.com
Signed-off-by: Julian Schindel <julian.schindel@cyberus-technology.de>
Co-authored-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP julian.schindel@sap.com
Signed-off-by: Julian Schindel <julian.schindel@cyberus-technology.de>
@arctic-alpaca
arctic-alpaca marked this pull request as ready for review July 24, 2026 08:58
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.

4 participants