| 【fix】move recovery log macro to NPURecovery.h and delete C10_NPU_API of GetEnvLogger func
Co-authored-by: zhaoyu<nanzhaogang@qq.com>
# message auto-generated for no-merge-commit merge:
!34604 merge log into master
【fix】move recovery log macro to NPURecovery.h and delete C10_NPU_API of GetEnvLogger func
Created-by: zhaoyu65
Commit-by: zhaoyu
Merged-by: ascend-robot
Description: <!--
PR描述模板更新日期:20260203
-->
# 【合入来源】
> <font color="red">**如有社区issue,请关联issue链接**</font>\
> <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font>
- [ ] 需求
- [ ] 问题单
- [x] issue/工单 [#1811](https://gitcode.com/Ascend/pytorch/issues/1811)
- [ ] 重构优化
- [ ] 资料更新
# 【修改方案】
1、将故障快恢模块的日志宏单独放在新建的文件NPURecovery.h里,取消用C10_NPU_API宏修饰GetEnvLogger函数;
2、修改了因为CI配置的CodeCheck_lintrunner检查出的代码规范问题;
# 【资料变更】
不涉及
# 【接口变更】
不涉及
# 【功能验证】
验证OK

# 【CheckList】
> PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]
- [x] 代码注释完备,正确记录错误日志
- [x] 代码实现进行了返回值、空指针等校验
- [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等
- [x] PR持续集成流水线(CI)执行通过,代码检查无异常
See merge request: Ascend/pytorch!34604 | 27 天前 |