mirror of
https://github.com/apple/container.git
synced 2026-10-17 19:49:20 +00:00
- Fixes #2392. - `ContainersService.logs(id:)` opened `stdio.log` and `vminitd.log` eagerly, so either one missing failed the whole request. Both are created by `RuntimeLinux` at bootstrap, so a container that has never been started has neither. And only `RuntimeLinux` writes `vminitd.log`, so with another runtime plugin even plain `container logs` failed. - A missing log now reads as empty: it's opened as `/dev/null`, with a debug log line. Any other failure to open a log still throws. Co-authored-by: Bryan Mosley <342731628+bryanmosley@users.noreply.github.com>