From: achbed Date: Fri, 21 Nov 2014 06:04:59 +0000 (-0600) Subject: Added some logging when a station fails to initialize X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3494fb1e280519fdfb934e61e7214901a05c4112;p=deefuzzer.git Added some logging when a station fails to initialize Signed-off-by: achbed --- diff --git a/deefuzzer/core.py b/deefuzzer/core.py index af027f4..9e09987 100644 --- a/deefuzzer/core.py +++ b/deefuzzer/core.py @@ -210,6 +210,11 @@ class DeeFuzzer(Thread): station = merge_defaults(station, self.conf['deefuzzer']['stationdefaults']) self.stations.append(Station(station, q, self.logger, self.m3u)) except Exception: + name = str(i) + if 'info' in station.keys(): + if 'short_name' in station['infos']: + name = station['infos']['short_name'] + self.logger.write_error('Error starting station ' + name) continue if self.m3u: