mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-17 10:17:55 +00:00
refactor(logging): standardize protocol and observability events (#3419)
* refactor(logging): standardize object capacity events * refactor(logging): standardize protocol server events * refactor(logging): standardize swift protocol events * refactor(logging): standardize observability events * refactor(logging): move masking helper and extend guardrails
This commit is contained in:
@@ -274,7 +274,17 @@ pub async fn is_authorized(
|
||||
let iam_sys = match rustfs_iam::get() {
|
||||
Ok(sys) => sys,
|
||||
Err(e) => {
|
||||
error!("IAM system unavailable: {}", e);
|
||||
error!(
|
||||
event = "protocol_gateway_authz_state",
|
||||
component = "protocols",
|
||||
subsystem = "gateway",
|
||||
result = "iam_unavailable",
|
||||
action = action.as_str(),
|
||||
bucket = %bucket,
|
||||
object = %object.unwrap_or_default(),
|
||||
error = %e,
|
||||
"protocol gateway authz state changed"
|
||||
);
|
||||
return Err(AuthorizationError::IamUnavailable);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user