From: Guillaume Pellerin Date: Mon, 26 May 2014 09:38:39 +0000 (+0200) Subject: cleanup X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9c905961b9b8d4b1d2333a41c6852d5f84a7fdb2;p=deefuzzer.git cleanup --- diff --git a/deefuzzer/station.py b/deefuzzer/station.py index bf86675..c67a203 100644 --- a/deefuzzer/station.py +++ b/deefuzzer/station.py @@ -581,14 +581,14 @@ class Station(Thread): self.q.get(1) server = urllib.urlopen(self.server_url) self.server_ping = True - self.logger.write_info('Station ' + self.channel_url + \ - ' : channel available') + text = 'Station ' + self.channel_url + ' : channel available' + self.logger.write_info(text) self.q.task_done() except: time.sleep(0.5) if log: - self.logger.write_error('Station ' + self.channel_url + \ - ' : could not connect the channel' ) + text = 'Station ' + self.channel_url + ' : could not connect the channel' + self.logger.write_error(text) log = False self.q.task_done() pass diff --git a/deefuzzer/tools/utils.py b/deefuzzer/tools/utils.py index 8282cfc..ce24e4c 100644 --- a/deefuzzer/tools/utils.py +++ b/deefuzzer/tools/utils.py @@ -34,3 +34,4 @@ def get_file_info(media): file_title = '.'.join(file_title) file_ext = file_name.split('.')[-1] return file_name, file_title, file_ext +