Skip to content

Commit e07c2d4

Browse files
committed
chore: add log level in error message
1 parent 92fac62 commit e07c2d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/markdown_check/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func checkMarkdownSchemas(res, rootRes *schema.Resource, parent string, mdConten
9696
if (deprecated || isDeprecatedField(name)) && !hasIdenticalSchemaField(rootRes, name) {
9797
if isExist {
9898
count++
99-
fmt.Printf("`%s` was deprecated, should be deleted in Markdown\n", fieldPath)
99+
fmt.Printf("[ERROR] `%s` was deprecated, should be deleted in Markdown\n", fieldPath)
100100
}
101101
continue
102102
}
@@ -110,13 +110,13 @@ func checkMarkdownSchemas(res, rootRes *schema.Resource, parent string, mdConten
110110

111111
if !isExist {
112112
count++
113-
fmt.Printf("can not find `%s`, please check it\n", fieldPath)
113+
fmt.Printf("[ERROR] can not find `%s`, please check it\n", fieldPath)
114114
} else if extentStr != "" {
115115
// check the format of field
116116
reg += fmt.Sprintf("\\(%s\\)", extentStr)
117117
if !checkArgumentExist(*mdContent, reg) {
118118
count++
119-
fmt.Printf("the format of `%s` is not correct, should be (%s)\n", fieldPath, extentStr)
119+
fmt.Printf("[ERROR] the format of `%s` is not correct, should be (%s)\n", fieldPath, extentStr)
120120
}
121121
}
122122

0 commit comments

Comments
 (0)