Skip to content

Commit

Permalink
fix: Wrong strict-caller log when skipping caller verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederick888 committed Oct 23, 2023
1 parent a1f43eb commit 2b32205
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ fn verify_caller(config: &Config) -> Result<Option<CurrentCaller>> {
if config.count_callers() == 0
&& (cfg!(not(feature = "strict-caller")) || config.count_databases() == 0)
{
#[cfg(not(feature = "strict-caller"))]
info!("Caller verification skipped as no caller profiles defined");
#[cfg(feature = "strict-caller")]
info!(
"Caller verification skipped as no caller profiles defined and strict-caller disabled"
);
Expand Down

0 comments on commit 2b32205

Please sign in to comment.