Skip to content

Conversation

@liuliaozhong-canway
Copy link
Collaborator

No description provided.


// 路径中有合法的内置变量或全局变量通过校验
if (validateVariable(path)) {
log.warn("The path {} contains legal variables", path);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 不应该用warn,这里表示校验路径通过
  2. 这个日志建议删除

}
if (!result) {
// 路径不合法
log.error("The path {} is invalid and the verification fails", path);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用warn级别即可,这个不是系统错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants