Skip to content

Commit

Permalink
ci: Streamline logging
Browse files Browse the repository at this point in the history
Let's have journald forward to the console and disable systemd's
status output which contain ANSI escape sequences that aren't rendered
in logs.
  • Loading branch information
DaanDeMeyer committed Mar 12, 2024
1 parent afa3487 commit 16ae428
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ jobs:
[Content]
KernelCommandLine=systemd.default_device_timeout_sec=180
# Status uses ansi escape sequences which are useless in log files.
systemd.show_status=false
# Make sure we get logs via the journal instead.
systemd.journald.forward_to_console
# Disable systemd's and the kernel's ratelimiting on userspace logging to kmsg.
systemd.log_ratelimit_kmsg=0
printk.devkmsg=on
Environment=SYSTEMD_REPART_MKFS_OPTIONS_EROFS="--quiet"
[Host]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ SuccessActionExitStatus=123
[Service]
Type=oneshot
ExecStart=/usr/lib/systemd/mkosi-check-and-shutdown.sh
StandardOutput=journal+console
StandardError=journal+console

0 comments on commit 16ae428

Please sign in to comment.