Merge pull request #14 from mpgn/fix_log

fix log for modules
main
mpgn 2023-03-22 10:49:07 +01:00 committed by GitHub
commit 0a06696daf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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