]> git.ipfire.org Git - thirdparty/systemd.git/commit - catalog/systemd.catalog.in
portable: log structured message when attach/detach succeeds
authorLuca Boccassi <bluca@debian.org>
Thu, 18 Jan 2024 19:32:47 +0000 (19:32 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 19 Jan 2024 16:03:04 +0000 (17:03 +0100)
commita0cca4d1b07e603e0ceeaff6d42518d5546617f8
tree0d7590ca5ddb17efaec098d67eb7d1e36fad95d9
parentc03a321ef6c25c120374e3ec94dbac7dc1af70ad
portable: log structured message when attach/detach succeeds

Currently portabled is completely silent (when not using debug level). But
when the system state is changed (ie: a portable is attached or detached)
there are no traces left in the journal. Log at info level when either of
those operations succeed, as they are effectively changing the state of
the system.

Create new MESSAGE_IDs for these logs, and also append PORTABLE_ROOT=
(and PORTABLE_EXTENSION= if any), like the units themselves are
configured to do via LogExtraFields=, so that the same metadata can
be found in the attach/detach messages and in logs from the units
themselves.
catalog/systemd.catalog.in
src/portable/portable.c
src/systemd/sd-messages.h