Skip to content

Commit

Permalink
Log unrecongnized resource quota parts instead of returning an error
Browse files Browse the repository at this point in the history
  • Loading branch information
tcallan committed Jun 6, 2023
1 parent 54daa3f commit 982ec5a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sdk/data_cosmos/src/resource_quota.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ pub(crate) fn resource_quotas_from_str(
} else if let Some(stripped) = token.strip_prefix(AUTH_POLICY_ELEMENTS) {
v.push(ResourceQuota::AuthPolicyElements(parseu64(stripped)?));
} else {
return Err(Error::with_message(ErrorKind::DataConversion, || {
format!(
"resource quota has an unrecognized part - part: \"{token}\" full string: \"{full_string}\""
)
}));
warn!("resource quota has an unrecognized part - part: \"{token}\" full string: \"{full_string}\"")
}

trace!("v == {:#?}", v);
Expand Down

0 comments on commit 982ec5a

Please sign in to comment.