mirror of
https://github.com/systemd/systemd
synced 2024-07-08 20:15:55 +00:00
test: enable debug logs for the user instances as well
To make debugging [0], hopefully, easier. [0] https://github.com/systemd/systemd/issues/28504
This commit is contained in:
parent
b7733dfee9
commit
7f048f0ed0
|
@ -1381,6 +1381,9 @@ install_systemd() {
|
|||
if [[ -n "$TEST_SYSTEMD_LOG_LEVEL" ]]; then
|
||||
echo DefaultEnvironment=SYSTEMD_LOG_LEVEL="$TEST_SYSTEMD_LOG_LEVEL" >>"$initdir/etc/systemd/system.conf.d/99-log-level.conf"
|
||||
fi
|
||||
# Enable debug logging for user instances as well
|
||||
mkdir -p "$initdir/etc/systemd/user.conf.d/"
|
||||
echo -ne "[Manager]\nLogLevel=debug\n" >"$initdir/etc/systemd/user.conf.d/10-log-level.conf"
|
||||
# Store coredumps in journal
|
||||
mkdir -p "$initdir/etc/systemd/coredump.conf.d/"
|
||||
echo -ne "[Coredump]\nStorage=journal\n" >"$initdir/etc/systemd/coredump.conf.d/10-storage-journal.conf"
|
||||
|
|
Loading…
Reference in New Issue
Block a user