mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
fix log for modules
This commit is contained in:
+3
-2
@@ -9,8 +9,6 @@ class Context:
|
||||
|
||||
def __init__(self, db, logger, args):
|
||||
self.db = db
|
||||
self.log = logger
|
||||
self.log.debug = logging.debug
|
||||
self.log_folder_path = os.path.join(os.path.expanduser('~/.cme'), 'logs')
|
||||
self.localip = None
|
||||
|
||||
@@ -19,3 +17,6 @@ class Context:
|
||||
|
||||
for key, value in vars(args).items():
|
||||
setattr(self, key, value)
|
||||
|
||||
self.log = logger
|
||||
self.log.debug = logging.debug
|
||||
|
||||
Reference in New Issue
Block a user