diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-09-25 13:25:27 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-09-25 16:24:11 +0200 |
commit | 7f048f0ed0168be6e90ca4bdb41f3fda030df244 (patch) | |
tree | a15cc766607a758d209cb419152f4d003900bc9a | |
parent | Merge pull request #29303 from abderrahim/syntax-fixes (diff) | |
download | systemd-7f048f0ed0168be6e90ca4bdb41f3fda030df244.tar.xz systemd-7f048f0ed0168be6e90ca4bdb41f3fda030df244.zip |
test: enable debug logs for the user instances as well
To make debugging [0], hopefully, easier.
[0] https://github.com/systemd/systemd/issues/28504
-rw-r--r-- | test/test-functions | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions index 9eeabd860a..6187aa84e8 100644 --- a/test/test-functions +++ b/test/test-functions @@ -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" |