Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246207 - media-sound/mpd-0.14_alpha1: Logfile gets filled with debug messages even on loglevel default
Summary: media-sound/mpd-0.14_alpha1: Logfile gets filled with debug messages even on ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Christoph Mende (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-09 19:48 UTC by Daniel Schömer
Modified: 2008-11-10 16:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch log functions to compare loglevels the right way. (mpd-0.14_alpha1-loglevel.patch,508 bytes, patch)
2008-11-09 19:49 UTC, Daniel Schömer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Schömer 2008-11-09 19:48:40 UTC
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
Comment 1 Daniel Schömer 2008-11-09 19:49:45 UTC
Created attachment 171223 [details, diff]
Patch log functions to compare loglevels the right way.
Comment 2 Daniel Schömer 2008-11-09 19:51:22 UTC
After appling attached patch "mpd-0.14_alpha1-loglevel.patch", the logfile no longer gets debug messages, if log_level is "default".
Comment 3 Avuton Olrich 2008-11-09 23:57:01 UTC
This patch was accepted upstream.
Comment 4 Christoph Mende (RETIRED) gentoo-dev 2008-11-10 16:38:13 UTC
thanks, fixed