Skip to content

Commit

Permalink
Merge pull request #152 from stealthrocket/hide-warning-when-running-…
Browse files Browse the repository at this point in the history
…inside-cli

Don't print verification key warning when running under Dispatch CLI
  • Loading branch information
chriso authored Apr 16, 2024
2 parents 81d49b8 + ee57a27 commit 93439d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(
if verification_key:
base64_key = base64.b64encode(verification_key.public_bytes_raw()).decode()
logger.info("verifying request signatures using key %s", base64_key)
else:
elif parsed_url.scheme != "bridge":
logger.warning(
"request verification is disabled because DISPATCH_VERIFICATION_KEY is not set"
)
Expand Down

0 comments on commit 93439d8

Please sign in to comment.