changed parse file error stderr to filewrite #301
This commit is contained in:
1 parent
29ee8a5901
commit
33e743c8fc
1 file changed
+6
-1
@@ -70,7 +70,12 @@ fn get_alias_value_in_record(
|
||||
}
|
||||
None => {
|
||||
AlertMessage::alert(
|
||||
&mut std::io::stderr().lock(),
|
||||
&mut BufWriter::new(
|
||||
OpenOptions::new()
|
||||
.append(true)
|
||||
.open(ERROR_LOG_PATH.to_string())
|
||||
.unwrap(),
|
||||
),
|
||||
match is_by_alias {
|
||||
true => format!(
|
||||
"count by clause alias value not found in count process. rule file:{} EventID:{}",
|
||||
|
||||
Reference in new issue
Block a user