Skip to content

Commit e29bdb2

Browse files
committed
log header value
1 parent 6388839 commit e29bdb2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/function/fastapp/health/validate_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
from fastapi import Header, HTTPException
66
from fastapp.core.config import settings
7+
from fastapp.utils import setup_logging
8+
9+
logger = setup_logging(__name__)
710

811

912
async def verify_health_auth_header(
@@ -15,6 +18,7 @@ async def verify_health_auth_header(
1518
x_ms_auth_internal_token: Value of the x-ms-auth-internal-token header.
1619
RETURNS (bool): Specifies whether the header matches.
1720
"""
21+
logger.info(f"Header value: '{x_ms_auth_internal_token}'")
1822
website_auth_encryption_key = settings.WEBSITE_AUTH_ENCRYPTION_KEY
1923
hash = base64.b64encode(
2024
sha256(website_auth_encryption_key.encode("utf-8")).digest()

0 commit comments

Comments
 (0)