Skip to content

Commit 5404e28

Browse files
authored
Change to warning as info doesn't show up (#313)
1 parent c9ba4ab commit 5404e28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/tc2/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ async def callback(
2727
"""
2828
expected_sig = hmac.new(settings.tc2_api_key.encode(), (await request.body()), hashlib.sha256).hexdigest()
2929
if not settings.dev_mode and (not webhook_signature or not compare_digest(webhook_signature, expected_sig)):
30-
app_logger.info(
30+
app_logger.warning(
3131
'Unauthorized key, expected %s got %s. Using TC2 key ending with: %s',
3232
expected_sig,
3333
webhook_signature,
3434
settings.tc2_api_key[-4:],
3535
)
36-
app_logger.info('Request body: %s', await request.body())
36+
app_logger.warning('Request body: %s', await request.body())
3737
raise HTTPException(status_code=403, detail='Unauthorized key')
3838
for event in webhook.events:
3939
company, deal = None, None

0 commit comments

Comments
 (0)