Skip to content

Commit 4457bc2

Browse files
committed
refactor(zerokms): use log target constant instead of string literal
Replace hardcoded "zerokms" target with the ZEROKMS constant from crate::log for consistency with other logging call sites.
1 parent 79738f5 commit 4457bc2

File tree

1 file changed

+2
-1
lines changed
  • packages/cipherstash-proxy/src/proxy/zerokms

1 file changed

+2
-1
lines changed

packages/cipherstash-proxy/src/proxy/zerokms/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pub use zerokms::ZeroKms;
55

66
use crate::config::TandemConfig;
77
use crate::error::{Error, ZeroKMSError};
8+
use crate::log::ZEROKMS;
89
use cipherstash_client::{
910
zerokms::{ClientKey, ZeroKMSBuilder},
1011
AutoStrategy, ZeroKMS,
@@ -20,7 +21,7 @@ pub(crate) fn init_zerokms_client(config: &TandemConfig) -> Result<ZerokmsClient
2021
.with_workspace_crn(config.auth.workspace_crn.clone())
2122
.detect()
2223
.map_err(|e| {
23-
tracing::warn!(target: "zerokms", msg = "ZeroKMS authentication strategy detection failed", error = %e);
24+
tracing::warn!(target: ZEROKMS, msg = "ZeroKMS authentication strategy detection failed", error = %e);
2425
ZeroKMSError::AuthenticationFailed
2526
})?;
2627

0 commit comments

Comments
 (0)