From 4eb182bf59b31d0829bc4fa838392c73b800cd37 Mon Sep 17 00:00:00 2001 From: William Chu Date: Thu, 25 Jul 2024 08:32:01 +1000 Subject: [PATCH] chore: remove structured logging --- lambda_function.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lambda_function.py b/lambda_function.py index d44d30e..69f76ea 100644 --- a/lambda_function.py +++ b/lambda_function.py @@ -1,6 +1,7 @@ import base64 import enum import json +import logging import os import subprocess import sys @@ -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 @@ -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()