mpd: Include more context in >=INFO logging

This commit is contained in:
Stein Magnus Jodal 2015-05-04 08:37:09 +02:00
parent 83c2bf9bcd
commit a8b15e6af5

View File

@ -167,7 +167,7 @@ class MpdDispatcher(object):
# TODO: check that blacklist items are valid commands?
blacklist = self.config['mpd'].get('command_blacklist', [])
if tokens and tokens[0] in blacklist:
logger.warning('Client sent us blacklisted command: %s', tokens[0])
logger.warning('MPD client used blacklisted command: %s', tokens[0])
raise exceptions.MpdDisabled(command=tokens[0])
try:
return protocol.commands.call(tokens, context=self.context)