Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuminn committed Jan 21, 2022
1 parent 01f5fc3 commit c3d04a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl ParseYaml {
ERROR_LOG_STACK
.lock()
.unwrap()
.push(format!("{}", errmsg));
.push(format!("[ERROR] {}", errmsg));
}
}
let mut yaml_docs = vec![];
Expand Down Expand Up @@ -96,7 +96,7 @@ impl ParseYaml {
ERROR_LOG_STACK
.lock()
.unwrap()
.push(format!("{}", errmsg));
.push(format!("[WARN] {}", errmsg));
}
self.errorrule_count += 1;
return io::Result::Ok(String::default());
Expand All @@ -117,7 +117,7 @@ impl ParseYaml {
ERROR_LOG_STACK
.lock()
.unwrap()
.push(format!("{}", errmsg));
.push(format!("[WARN] {}", errmsg));
}
self.errorrule_count += 1;
return io::Result::Ok(String::default());
Expand Down Expand Up @@ -162,7 +162,7 @@ impl ParseYaml {
ERROR_LOG_STACK
.lock()
.unwrap()
.push(format!("{}", errmsg));
.push(format!("[WARN] {}", errmsg));
}
self.errorrule_count += 1;
return io::Result::Ok(ret);
Expand All @@ -183,7 +183,7 @@ impl ParseYaml {
ERROR_LOG_STACK
.lock()
.unwrap()
.push(format!("{}", errmsg));
.push(format!("[WARN] {}", errmsg));
}
self.errorrule_count += 1;
return io::Result::Ok(ret);
Expand Down

0 comments on commit c3d04a5

Please sign in to comment.