mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
Return a guard variable from `create_logger()` which the caller can implicitly drop to guarantee that all threads started by the async log drain are stopped. This fixes a long-standing bug [1] whereby the agent could panic with the following error, generated by the `slog` logging crate: ``` slog::Fuse Drain: Custom { kind: Other, error: "serde serialization error: Bad file descriptor (os error 9)" } ``` [1] - See https://github.com/kata-containers/kata-containers/issues/171. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |