Skip to content

Commit

Permalink
chore: remove structured logging
Browse files Browse the repository at this point in the history
  • Loading branch information
uptickmetachu committed Jul 24, 2024
1 parent 69fbb2d commit 4eb182b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lambda_function.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import base64
import enum
import json
import logging
import os
import subprocess
import sys
Expand All @@ -19,11 +20,10 @@
import pydantic
import requests
import sentry_sdk
from aws_lambda_powertools import Logger
from playwright.sync_api import sync_playwright
from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration

logger = Logger(service="splat")
logger = logging.getLogger("splat")

S3_RETRY_COUNT = 10

Expand Down Expand Up @@ -388,7 +388,6 @@ def deliver_pdf(payload: Payload, output_filepath: str) -> Response:


# Entrypoint for AWS
@logger.inject_lambda_context(log_event=False)
def lambda_handler(event: dict, context: dict) -> dict: # noqa
try:
resp = handle_event(event).as_dict()
Expand Down

0 comments on commit 4eb182b

Please sign in to comment.