File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ async def callback(
27
27
"""
28
28
expected_sig = hmac .new (settings .tc2_api_key .encode (), (await request .body ()), hashlib .sha256 ).hexdigest ()
29
29
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 (
31
31
'Unauthorized key, expected %s got %s. Using TC2 key ending with: %s' ,
32
32
expected_sig ,
33
33
webhook_signature ,
34
34
settings .tc2_api_key [- 4 :],
35
35
)
36
- app_logger .info ('Request body: %s' , await request .body ())
36
+ app_logger .warning ('Request body: %s' , await request .body ())
37
37
raise HTTPException (status_code = 403 , detail = 'Unauthorized key' )
38
38
for event in webhook .events :
39
39
company , deal = None , None
You can’t perform that action at this time.
0 commit comments