wishlist: avoid overwhelming journalctl with repeats of a single warning
DESCRIPTION: In the space of less than four seconds during a successful incoming phone call,
a feedbackd
warning message about sound not being played was written 1751 times
to the logging data that can be output with journalctl
. While this can be grepped
out, it does make manipulating and reading log files somewhat more difficult,
especially for novices.
WISHLIST: it would be better if feedbackd could limit the number of identical warning messages generated within a reasonable time interval and then warn that the limit in warning messages has been reached (e.g. max 20 messages per minute, at least for this particular message). The difficulty is in judging which debug/warning/info/.../error messages are safe to limit in this way, and which are better left as potential "spammers" in order to draw attention to the debug/warning/.../error message. At least for this particular warning, limiting the number of messages would seem safe.
PRIORITY: low
DETAILS:
Manually tidied extract of sudo journalctl -n 10000
:
Sep 06 21:11:35 mobian ModemManager[51135]: <info> [modem3/call6] call state changed: unknown -> ringing-in (incoming-new)
Sep 06 21:11:36 mobian feedbackd[1048]: Failed to play sound 'phone-incoming-call': Invalid state
Sep 06 21:11:36 mobian feedbackd[1048]: Failed to play sound 'phone-incoming-call': Invalid state
Sep 06 21:11:36 mobian feedbackd[1048]: Failed to play sound 'phone-incoming-call': Invalid state
[35 copies of the same line ...]
Sep 06 21:11:36 mobian eg25-manager[51115]: Response: [RING]
Sep 06 21:11:36 mobian eg25-manager[51115]: Executed soft sleep sequence
Sep 06 21:11:36 mobian feedbackd[1048]: Failed to play sound 'phone-incoming-call': Invalid state
Sep 06 21:11:36 mobian feedbackd[1048]: Failed to play sound 'phone-incoming-call': Invalid state
Sep 06 21:11:36 mobian feedbackd[1048]: Failed to play sound 'phone-incoming-call': Invalid state
[315 copies of the same line at 21:11:36 and 21:11:37 ...]
Sep 06 21:11:37 mobian ModemManager[51135]: <info> [modem3] 3GPP registration state changed (home -> registering)
Sep 06 21:11:37 mobian ModemManager[51135]: <info> [modem3] 3GPP registration state changed (registering -> home)
Sep 06 21:11:37 mobian feedbackd[1048]: Failed to play sound 'phone-incoming-call': Invalid state
Sep 06 21:11:37 mobian feedbackd[1048]: Failed to play sound 'phone-incoming-call': Invalid state
Sep 06 21:11:37 mobian feedbackd[1048]: Failed to play sound 'phone-incoming-call': Invalid state
[1379 copies of the same line at 21:11:37 .. 21:11:39 ...]
[plus a few more copies of the same line at 21:11:39 mixed with more interesting lines]
Overall count within four seconds:
$ sudo journalctl -n 10000 |grep "21:11:3[6-9] mobian feedbackd\[1048\]: Failed to play sound" |wc
1751 21012 171598
CONTEXT:
- pinephone v1.2
- Mobian/trixie
$ dpkg -l |grep -E "feedback|systemd"
ii dbus-user-session 1.14.8-2 arm64 simple interprocess messaging system (systemd --user integration)
ii feedbackd 0.2.1-1 arm64 DBus service for haptic/visual/audio feedback
ii feedbackd-common 0.2.1-1 all Shared files for feedbackd
ii feedbackd-device-themes 0.0.r3-1 all Device specific themes for Feedbackd
ii gir1.2-lfb-0.0:arm64 0.2.1-1 arm64 GObject introspection data for libfeedback
ii libfeedback-0.0-0:arm64 0.2.1-1 arm64 Library for managing haptic/visual/audio feedback
ii libfeedback-dev:arm64 0.2.1-1 arm64 Development files for libfeedback
ii libnss-resolve:arm64 254.1-2 arm64 nss module to resolve names via systemd-resolved
ii libnss-systemd:arm64 254.1-2 arm64 nss module providing dynamic user and group name resolution
ii libpam-systemd:arm64 254.1-2 arm64 system and service manager - PAM module
ii libsystemd-dev:arm64 254.1-2 arm64 systemd utility library - development files
ii libsystemd-shared:arm64 254.1-2 arm64 systemd shared private library
ii libsystemd0:arm64 254.1-2 arm64 systemd utility library
ii systemd 254.1-2 arm64 system and service manager
ii systemd-dev 254.1-2 all systemd development files
ii systemd-resolved 254.1-2 arm64 systemd DNS resolver
ii systemd-sysv 254.1-2 arm64 system and service manager - SysV compatibility symlinks
ii systemd-zram-generator 1.1.2-3 arm64 Systemd unit generator for zram devices
ii wake-mobile 1.8-1 arm64 Proof-of-concept alarm app that uses systemd timers to wake up the system