Skip to content

Commit

Permalink
chore(rust): fix typo and re-add instrumentation
Browse files Browse the repository at this point in the history
fix typo on comment
  • Loading branch information
polvorin committed May 25, 2024
1 parent 2d69a69 commit 7ab0742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions implementations/rust/ockam/ockam_abac/src/policy/policies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use ockam_core::compat::vec::Vec;
use ockam_core::Result;
use ockam_identity::{Identifier, IdentitiesAttributes};
use strum::IntoEnumIterator;
use tracing::debug;
use tracing::{debug, instrument};

#[derive(Clone)]
pub struct Policies {
Expand All @@ -28,7 +28,7 @@ impl Policies {
}
}

//TODO #[instrument(skip_all, fields(resource = %resource, action = %action, env = %env, authority = %authority))]
#[instrument(skip_all, fields(resource = %resource, action = %action, env = %env, authority = ?authority))]
pub fn make_policy_access_control(
&self,
identities_attributes: Arc<IdentitiesAttributes>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ impl NodeManager {
}
} else {
// If no expression is given, assume it's AllowAll, but only if no authority
// was set neither. Why: not sure, but to behave as it was previusly if there
// was set neither. Why: not sure, but to behave as it was previously if there
// is an authority set. If there is no authority, but still some expression,
// we use the provided policy expression
warn! {
Expand Down

0 comments on commit 7ab0742

Please sign in to comment.