From 69ac52973df150aff549b2c17f047d11b0a05de9 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 31 Aug 2012 17:58:12 -0400 Subject: [PATCH] Replaygain: added better logging --- python_apps/media-monitor2/media/update/replaygain.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python_apps/media-monitor2/media/update/replaygain.py b/python_apps/media-monitor2/media/update/replaygain.py index ef15262f0..caabc9350 100644 --- a/python_apps/media-monitor2/media/update/replaygain.py +++ b/python_apps/media-monitor2/media/update/replaygain.py @@ -121,6 +121,8 @@ def calculate_replay_gain(file_path): matches = search.groups() if len(matches) == 1: replay_gain = matches[0] + else: + logger.warn("Received more than 1 match in: '%s'" % str(matches)) return replay_gain