]> git.parisson.com Git - deefuzzer.git/commitdiff
add version logging
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Thu, 8 Feb 2024 00:13:42 +0000 (01:13 +0100)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Thu, 8 Feb 2024 00:13:42 +0000 (01:13 +0100)
deefuzzer/core.py
deefuzzer/recorder.py

index 1126ba925a227003b32f5e2e9cd92846e57e6fcb..061139ce1652bb9da07422723de136c9faf97c1f 100644 (file)
@@ -30,10 +30,14 @@ import mimetypes
 import hashlib
 import platform
 from threading import Thread
-from deefuzzer.station import *
-from deefuzzer.tools import *
+
+from .station import *
+from .tools import *
+
+from .__init__ import __version__
 
 mimetypes.add_type('application/x-yaml', '.yaml')
+mimetypes.add_type('application/x-yaml', '.yml')
 
 
 class DeeFuzzer(Thread):
@@ -54,7 +58,6 @@ class DeeFuzzer(Thread):
         Thread.__init__(self)
         self.conf_file = conf_file
         self.conf = get_conf_dict(self.conf_file)
-        
         # print(self.conf)
         
         if 'deefuzzer' not in self.conf :
@@ -100,7 +103,7 @@ class DeeFuzzer(Thread):
                 setattr(self, key, self.conf['deefuzzer'][key])
 
         # Set the deefuzzer logger
-        self._info('Starting DeeFuzzer')
+        self._info('Starting DeeFuzzer version %s' % __version__)
         self._info('Using Python version %s' % platform.python_version())
         self._info('Using libshout version %s' % shout.version())
         self._info('Number of stations : ' + str(len(self.station_settings)))
index 8e131b7dd3f71c7858ac34c9717b8ca1ff49c0b8..13f3f5771a7846aab48d69ecfaf9a689a3f9b65d 100644 (file)
@@ -21,7 +21,6 @@
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 
 
-
 import os