diff options
author | Carlos Goncalves <mail@cgoncalves.pt> | 2017-10-06 18:54:22 +0200 |
---|---|---|
committer | Carlos Goncalves <mail@cgoncalves.pt> | 2017-10-06 21:36:05 +0000 |
commit | 5733b9ce1dcfb40e0ef6a956c0e6c092829fc6d6 (patch) | |
tree | 2b8959606a40fe1677cb930286fed7a4c60f6ae6 /doctor_tests/logger.py | |
parent | f8d5647530ead1b88834e941961f5fa939c0f082 (diff) |
Fix retrieval of log filename path
Change-Id: I0dd61a020827e7ba9ec7a2e0300bf50dd7175e86
Signed-off-by: Carlos Goncalves <mail@cgoncalves.pt>
(cherry picked from commit 4f6132978ad548ee1e696016d450d0b4a4cbab9f)
Diffstat (limited to 'doctor_tests/logger.py')
-rw-r--r-- | doctor_tests/logger.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doctor_tests/logger.py b/doctor_tests/logger.py index b7a49fdb..2da2c0de 100644 --- a/doctor_tests/logger.py +++ b/doctor_tests/logger.py @@ -40,6 +40,7 @@ class Logger(object): file_handler = logging.FileHandler(filename, mode='w') file_handler.setFormatter(formatter) file_handler.setLevel(logging.DEBUG) + self.filename = file_handler.baseFilename self.logger.addHandler(file_handler) def getLogger(self): |