[Git][pulseaudio/pulseaudio][master] Don't log battery level and dock status every minute

PulseAudio Marge Bot (@pulseaudio-merge-bot) gitlab at gitlab.freedesktop.org
Tue Mar 19 01:12:43 UTC 2024



PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio


Commits:
5d7cd8bd by Martin Tournoij at 2024-03-18T23:44:09+00:00
Don't log battery level and dock status every minute

My log files get completely clobbered by this; thousands of lines of:

	Jan 18 18:14:44 pulseaudio[29946]: [pulseaudio] backend-native.c: Dock Status: undocked
	Jan 18 18:15:39 pulseaudio[29946]: [pulseaudio] backend-native.c: Battery Level: 50%
	Jan 18 18:15:39 pulseaudio[29946]: [pulseaudio] backend-native.c: Dock Status: undocked
	Jan 18 18:16:34 pulseaudio[29946]: [pulseaudio] backend-native.c: Battery Level: 50%
	Jan 18 18:16:34 pulseaudio[29946]: [pulseaudio] backend-native.c: Dock Status: undocked
	Jan 18 18:17:29 pulseaudio[29946]: [pulseaudio] backend-native.c: Battery Level: 50%
	Jan 18 18:17:29 pulseaudio[29946]: [pulseaudio] backend-native.c: Dock Status: undocked
	Jan 18 18:18:25 pulseaudio[29946]: [pulseaudio] backend-native.c: Battery Level: 50%
	Jan 18 18:18:25 pulseaudio[29946]: [pulseaudio] backend-native.c: Dock Status: undocked
	Jan 18 18:19:20 pulseaudio[29946]: [pulseaudio] backend-native.c: Battery Level: 50%
	Jan 18 18:19:20 pulseaudio[29946]: [pulseaudio] backend-native.c: Dock Status: undocked
	Jan 18 18:20:15 pulseaudio[29946]: [pulseaudio] backend-native.c: Battery Level: 50%

This seems like it should be a debug log, not a notice.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/810>

- - - - -


1 changed file:

- src/modules/bluetooth/backend-native.c


Changes:

=====================================
src/modules/bluetooth/backend-native.c
=====================================
@@ -969,11 +969,11 @@ static void rfcomm_io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_i
 
                     switch (key) {
                         case 1:
-                            pa_log_notice("Battery Level: %d0%%", val + 1);
+                            pa_log_debug("Battery Level: %d0%%", val + 1);
                             pa_bluetooth_device_report_battery_level(t->device, (val + 1) * 10, "Apple accessory indication");
                             break;
                         case 2:
-                            pa_log_notice("Dock Status: %s", val ? "docked" : "undocked");
+                            pa_log_debug("Dock Status: %s", val ? "docked" : "undocked");
                             break;
                         default:
                             pa_log_debug("Unexpected IPHONEACCEV key %#x", key);



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/5d7cd8bd0b6dd78b9c699b4d81c9e68878811459

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/5d7cd8bd0b6dd78b9c699b4d81c9e68878811459
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20240319/e2568c59/attachment-0001.htm>


More information about the pulseaudio-commits mailing list