mpd logfile gets filled with debug messages since I updated from 0.14.0_pre20081103 to 0.14_alpha1. After a few days, the logfile has grown upto 25 MB. Reproducible: Always Steps to Reproduce: 1. emerge =media-sound/mpd-0.14_alpha1 2. set 'log_level "default"' in /etc/mpd.conf 3. start mpd (/etc/init.d/mpd start) 4. watch mpd logfile (/var/log/mpd/mpd.log if started by /etc/init.d/mpd) Actual Results: Every few seconds, debug messages like below appear in the logfile. Nov 09 20:19 : command_process_list: process command "status" Nov 09 20:19 : command_process_list: command returned 0 Nov 09 20:19 : command_process_list: process command "currentsong" Nov 09 20:19 : command_process_list: command returned 0 Nov 09 20:19 : client 0: process command list returned 0 Nov 09 20:19 : client 0: process command "close" Nov 09 20:19 : client 0: command returned 20 Expected Results: No debug messages should appear in the logfile, if log_level is set to "default" in /etc/mpd.conf. Upstream bug: http://musicpd.org/mantis/view.php?id=1799
Created attachment 171223 [details, diff] Patch log functions to compare loglevels the right way.
After appling attached patch "mpd-0.14_alpha1-loglevel.patch", the logfile no longer gets debug messages, if log_level is "default".
This patch was accepted upstream.
thanks, fixed