已关闭
[Bug-Report|缺陷反馈]:ASCEND_WORK_PATH设置多级相对路径时log模块日志落盘不符合预期 #937
GuoWenbo创建于  9月9日关闭于  9月11日
GuoWenbo成员
9月9日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

根据ASCEND_WORK_PATH环境变量的资料描述,指定路径不存在时会主动创建,且支持设置相对路径
当前测试 export ASCEND_WORK_PATH=wk1/wk2,日志模块的plog日志落盘到了wk1路径,而非预期的wk1/wk2路径

Environment / 环境信息 (Mandatory / 必填)

all

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

export ASCEND_WORK_PATH=wk1/wk2 指定相对路径,该路径未创建且为多级路径

Describe the expected behavior / 预期结果 (Mandatory / 必填)

预期按照ASCEND_WORK_PATH的设置路径落盘

1)export ASCEND_WORK_PATH=wk1/wk2,指定相对路径,但是有多级目录结构,plog日志落盘到wk1下。
2)设置export ASCEND_WORK_PATH=wk只有一级目录时,落盘路径正常。
3)指定绝对路径同样也是两级目录,落盘路径正常。

Special notes for this issue/备注 (Optional / 选填)

likedislike
GGuoWenbo成员
9月9日 添加了label:bug-report
GGuoWenbo成员
9月9日 关联了pull request:fix: ASCEND_WORK_PATH设置多级相对路径时log模块日志落盘不符合预期 (#937)
GuoWenbo成员
9月11日 评论:

已完成修复

likedislike
GGuoWenbo成员
9月11日 issue状态由 进行中 改变为 已解决
GGuoWenbo成员
9月11日 关闭了 issue
CANN-robotCANN-robot成员
9月11日 添加了label:resolved
GGuoWenbo成员
9月12日 关联了pull request:fix: ASCEND_WORK_PATH设置多级相对路径时log模块日志落盘不符合预期 (#937) [sync 9.2.0]