Skip to content

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Aug 22, 2025

Like pop-os/cosmic-settings-daemon#100. We don't appear to install default configs for these settings anywhere? And we may not want libcosmic to inherently depend on globally installed config files.

So just avoid printing errors in that case.

We may want to consider what errors ConfigGet returns (#948) but this should do for now.

This should help with a big part of the log spam libcosmic is currently producing.

Like pop-os/cosmic-settings-daemon#100. We don't
appear to install default configs for these settings anywhere? And we
may not want libcosmic to inherently depend on globally installed config
files.

So just avoid printing errors in that case.

We may want to consider what errors `ConfigGet` returns
(#948) but this should do for
now.

This should help with a big part of the log spam libcosmic is currently
producing.
@mmstick mmstick merged commit 2d62503 into master Aug 22, 2025
14 checks passed
@mmstick mmstick deleted the cosmic-tk-config-not-found branch August 22, 2025 20:41
ids1024 added a commit that referenced this pull request Aug 22, 2025
* Use `tracing::error!` in places where `eprintln!` was used
* Loop over errors and print seperately
* Print errors with `Display` rather than `Debug`
* Don't print errors that should be ignored
  - Matches #949, for same
    reasons.

With this, and the previous change, cosmic-panel no longer spams a bunch
of config errors from different applets on start.
mmstick pushed a commit that referenced this pull request Aug 22, 2025
* Use `tracing::error!` in places where `eprintln!` was used
* Loop over errors and print seperately
* Print errors with `Display` rather than `Debug`
* Don't print errors that should be ignored
  - Matches #949, for same
    reasons.

With this, and the previous change, cosmic-panel no longer spams a bunch
of config errors from different applets on start.
ids1024 added a commit to pop-os/cosmic-applets that referenced this pull request Aug 25, 2025
With pop-os/libcosmic#949 and
pop-os/libcosmic#950,
`journalctl /usr/bin/cosmic-panel  --follow` no longer shows a bunch of
config error message span when the panel is started.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants