]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: enable debug logs for the user instances as well
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 25 Sep 2023 11:25:27 +0000 (13:25 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 25 Sep 2023 14:24:11 +0000 (15:24 +0100)
To make debugging [0], hopefully, easier.

[0] https://github.com/systemd/systemd/issues/28504

test/test-functions

index 9eeabd860a9bdf844f5a0bd6d20006364336fca5..6187aa84e8d72d0faa3d2964a35df6bd35032a9f 100644 (file)
@@ -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"