bdrazhzhov / audio-service-mpris

Flutter audio_service plugin implementing Media Player Remote Interfacing Specification
MIT License
7 stars 5 forks source link

Too much logging during development #7

Open hacker1024 opened 2 weeks ago

hacker1024 commented 2 weeks ago

As far as I can tell, there's no easy way to suppress printed messages from log calls.

During development, this can get out of hand. My desktop environment, for example, constantly fetches the position, so when audio is playing, I get a constant stream of the following:

[audio_service_mpris] Requested property Position from org.mpris.MediaPlayer2.Player
[audio_service_mpris] GetPosition(): 0:01:42.003538
[audio_service_mpris] Requested property Position from org.mpris.MediaPlayer2.Player
[audio_service_mpris] GetPosition(): 0:01:42.003538
[audio_service_mpris] Requested property CanSeek from org.mpris.MediaPlayer2.Player
[audio_service_mpris] Requested property Position from org.mpris.MediaPlayer2.Player
[audio_service_mpris] GetPosition(): 0:01:42.003538
...

It'd be great if there was a way to stop logging altogether.

bdrazhzhov commented 2 weeks ago

Currently it not possible to stop logging. Do you have any suggestion how to implement an ability to turn on/off the log messages?