Skip to content

Commit

Permalink
fix: output agg result string when allfieldinfo profile
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Oct 14, 2024
1 parent 066f575 commit 7aed9fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/detections/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ pub fn create_message(
//Detailsの中身が何も入っていない場合はそのままの値を入れる
replaced_profiles.push((key.to_owned(), profile.to_owned()));
} else {
replaced_profiles.push((key.to_owned(), Details(detect_info.detail.into())));
replaced_profiles
.push((key.to_owned(), Details(detect_info.detail.clone().into())));

// メモリの節約のためにDetailsの中身を空にする
detect_info.detail = CompactString::default();
Expand All @@ -180,7 +181,10 @@ pub fn create_message(
AllFieldInfo(_) => {
exist_all_field_info_in_ext_field = true;
if is_agg {
replaced_profiles.push((key.to_owned(), AllFieldInfo("-".into())));
replaced_profiles.push((
key.to_owned(),
AllFieldInfo(detect_info.detail.clone().into()),
));
} else {
let recinfos = if let Some(c) = record_details_info_map.get("#AllFieldInfo") {
c.to_owned()
Expand Down

0 comments on commit 7aed9fe

Please sign in to comment.