]> git.parisson.com Git - deefuzzer.git/commitdiff
Added some logging when a station fails to initialize
authorachbed <github@achbed.org>
Fri, 21 Nov 2014 06:04:59 +0000 (00:04 -0600)
committerachbed <github@achbed.org>
Fri, 21 Nov 2014 06:04:59 +0000 (00:04 -0600)
Signed-off-by: achbed <github@achbed.org>
deefuzzer/core.py

index af027f45ee8e3f77b40f591f1be653f74817cc5b..9e099876bc066f6a39ed6d0a94d5976334af2bb6 100644 (file)
@@ -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: