]> git.parisson.com Git - deefuzzer.git/commitdiff
Fixed a few issues with setting up logging
authorachbed <github@achbed.org>
Fri, 21 Nov 2014 05:42:35 +0000 (23:42 -0600)
committerachbed <github@achbed.org>
Fri, 21 Nov 2014 05:42:35 +0000 (23:42 -0600)
Signed-off-by: achbed <github@achbed.org>
deefuzzer/core.py

index 9f401c515a2895e6cee88b9681167faea4787e80..af027f45ee8e3f77b40f591f1be653f74817cc5b 100644 (file)
@@ -62,11 +62,14 @@ class DeeFuzzer(Thread):
         self.conf_file = conf_file
         self.conf = get_conf_dict(self.conf_file)
 
+        if not 'deefuzzer' in self.conf.keys():
+            return 
+
         # Get the log setting first (if possible)
-        log_file = str(self.conf.pop('log', ''))
+        log_file = str(self.conf['deefuzzer'].pop('log', ''))
         log_dir = os.sep.join(log_file.split(os.sep)[:-1])
         if not os.path.exists(log_dir) and log_dir:
-            os.makedirs(m3u_dir)
+            os.makedirs(log_dir)
         self.logger = Logger(log_file)
 
         for key in self.conf['deefuzzer'].keys():