已关闭
[Bug-Report|缺陷反馈]: 按日志规范批量整改拼写/级别错配/敏感信息脱敏并补充 UT #812
W三石创建于 15 天前关闭于 7 天前
14 天前 将 Klayyy 设为负责人
13 天前 修改了issue 的描述
Leewis
7 天前 评论:
7 天前 评论:
https://gitcode.com/cann/hcomm/pull/4988 日志整改PR已上库;


17 小时前 添加了label:tech-debt
https://gitcode.com/cann/hcomm/pull/4988 日志整改PR已上库;


Describe the current behavior / 问题描述
仓内多模块存在日志规范问题,影响排障检索与安全合规,主要包括:
GetVersionErrMessage在 v1/v2 checker 中重复实现。strncpy_s失败路径返回值语义不合理(失败仍返回 true 继续填表)。关联实现 PR:https://gitcode.com/cann/hcomm/pull/4988
Environment / 环境信息
HCOMM 仓通用代码质量问题,不依赖特定硬件环境。
Steps to reproduce the issue / 重现步骤
InitAlgInfoCommDesc/CheckAhcSupport在strncpy_s失败时的返回值行为。Describe the expected behavior / 预期结果(验收标准)
GetVersionErrMessage抽取为独立模块,消除 v1/v2 重复实现。strncpy_s失败时返回false并跳过填表;补充对应 UT。Related log / screenshot / 日志 / 截图
见 PR #4881 描述与 diff。
Special notes for this issue/备注
本 Issue 覆盖本批次 CleanCode/日志规范整改范围;合入后随 PR #4881 关闭。