[PATCH V1] framework/logger: fix bug of generate the log output path
Jun Dong
junx.dong at intel.com
Wed Apr 20 09:04:20 CEST 2022
First, the log default path was generated based main script's directory.
When modifying the standard project, we moved main script from framework
sub directory to base directory, but no synchronous change the log patch
generate rule. This patch fixed it.
Signed-off-by: Jun Dong <junx.dong at intel.com>
---
framework/logger.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/framework/logger.py b/framework/logger.py
index 576a51dc..774ab9c4 100644
--- a/framework/logger.py
+++ b/framework/logger.py
@@ -194,7 +194,7 @@ class DTSLOG(BaseLoggerAdapter):
self.debug_lvl = logging.DEBUG
if log_dir is None:
- self.log_path = os.getcwd() + "/../" + FOLDERS["Output"]
+ self.log_path = os.getcwd() + "/" + FOLDERS["Output"]
else:
self.log_path = (
log_dir # log dir should contain tag/crb global value and mod in dts
--
2.25.1
More information about the dts
mailing list