Improve logging

This commit is contained in:
Andras Schmelczer 2025-11-29 14:22:05 +00:00
commit 84f077f36b
16 changed files with 90 additions and 34 deletions

View file

@ -52,14 +52,14 @@ pub fn auth(state: &AppState, token: &str, vault_id: &VaultId) -> Result<User, S
VaultAccess::AllowList(AllowListedVaults { ref allowed }) => allowed.contains(vault_id),
} {
info!(
"User '{}' is authenticated and is authorised to access to vault '{vault_id}'",
"User `{}` is authenticated and is authorised to access to vault `{vault_id}`",
user.name
);
Ok(user)
} else {
info!(
"User '{}' is authenticated but is not authorised to access vault '{vault_id}'",
"User `{}` is authenticated but is not authorised to access vault `{vault_id}`",
user.name
);