From 4c37e8611dd8414963cc1832e1ee4c50ea049fe9 Mon Sep 17 00:00:00 2001 From: Golda Velez Date: Wed, 22 May 2024 09:54:25 -0700 Subject: [PATCH] debugging --- logs-to-tsdb/kinesis-lambda.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/logs-to-tsdb/kinesis-lambda.py b/logs-to-tsdb/kinesis-lambda.py index eb2a77d..f33c1c7 100644 --- a/logs-to-tsdb/kinesis-lambda.py +++ b/logs-to-tsdb/kinesis-lambda.py @@ -21,6 +21,8 @@ def unix_to_datetime(unix_timestamp): return datetime.fromtimestamp(unix_timestamp, tz=timezone.utc) def handler(event, context): + pprint(event) + warn(pformat(event)) # Connect to the TimescaleDB print("Connecting to db host " + DB_HOST) conn = psycopg2.connect(