Skip to content

Commit d4d5c23

Browse files
committed
remove path_kind_map_def
1 parent 9485715 commit d4d5c23

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

gateway/spacegate-lib/src/plugin/audit_log.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ pub struct SgFilterAuditLog {
5858
#[serde(skip)]
5959
jsonpath_inst: Option<JsonPathInst>,
6060
head_key_auth_ident: String,
61-
path_kind_map_def: HashMap<String, String>,
6261
}
6362

6463
impl SgFilterAuditLog {
@@ -127,7 +126,6 @@ impl SgFilterAuditLog {
127126
}
128127
Err(_) => false,
129128
};
130-
let kind = self.path_kind_map_def.keys().find(|k| param.request_path.contains(*k)).and_then(|k| self.path_kind_map_def.get(k));
131129
let content = LogParamContent {
132130
op: param.request_method,
133131
name: resp.extensions().get::<CertInfo>().and_then(|info| info.name.clone()).unwrap_or_default(),
@@ -257,7 +255,6 @@ impl Default for SgFilterAuditLog {
257255
exclude_log_path: vec!["/starsysApi/apis".to_string()],
258256
jsonpath_inst: None,
259257
head_key_auth_ident: "Iam-Auth-Ident".to_string(),
260-
path_kind_map_def: HashMap::from([("op-api".to_string(), "op".to_string())]),
261258
}
262259
}
263260
}

0 commit comments

Comments
 (0)