Don't log output of cosmic-comp/cosmic-panel, log panics

It is better to have `cosmic-comp` and `cosmic-panel` log to journald
themselves.

Having panics logged should be helpful if panics ever occur.
This commit is contained in:
Ian Douglas Scott 2023-01-13 11:55:55 -08:00
parent 9c96fde423
commit 1fe93839db
4 changed files with 56 additions and 80 deletions

11
Cargo.lock generated
View file

@ -232,6 +232,7 @@ dependencies = [
"futures-util",
"launch-pad",
"libc",
"log-panics",
"nix 0.25.0",
"scopeguard",
"sendfd",
@ -484,6 +485,16 @@ dependencies = [
"cfg-if",
]
[[package]]
name = "log-panics"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68f9dd8546191c1850ecf67d22f5ff00a935b890d0e84713159a55495cc2ac5f"
dependencies = [
"backtrace",
"log",
]
[[package]]
name = "matchers"
version = "0.1.0"