Skip to content

v0.10.1: rotate the add-on log

Choose a tag to compare

@gnacho gnacho released this 05 Nov 17:18
· 115 commits to main since this release

The add-on log can no longer grow without limit.

Fixed

  • The video child writes to /data/video.log because go2rtc swallows its
    stderr. Inside an add-on that runs for weeks that file only grows. When it
    passes two megabytes it is moved to video.log.1 (replacing the previous
    copy) and a new one starts, which is enough to keep the last sessions
    without filling the volume.

Verified

  • sh -n wibox/run.sh clean, go build, go vet, gofmt clean and the whole
    suite green (4.6 s).

Not verified

  • The rotation path with a real file over the limit only triggers after two
    megabytes of log, so it has not been seen in the container yet. The shell
    branch is guarded with || true so a read-only or missing file cannot abort
    the add-on start.