[V1] framework/logger: fix bug of generate the log output path
Commit Message
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@intel.com>
---
framework/logger.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Wed, 20 Apr 2022 15:04:20 +0800, Jun Dong <junx.dong@intel.com> wrote:
> 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@intel.com>
Applied, thanks
@@ -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