Skip to content

Commit 7bf078a

Browse files
committed
Add logging
1 parent 7bdc7d6 commit 7bf078a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

datadog_lambda/handler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# This product includes software developed at Datadog (https://www.datadoghq.com/).
44
# Copyright 2020 Datadog, Inc.
55

6+
print("Entered handler.py")
7+
68
from importlib import import_module
79

810
import os
@@ -43,3 +45,5 @@ class HandlerError(Exception):
4345
raise
4446

4547
handler = datadog_lambda_wrapper(handler_func)
48+
49+
print("Exiting handler.py")

datadog_lambda/wrapper.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# under the Apache License Version 2.0.
33
# This product includes software developed at Datadog (https://www.datadoghq.com/).
44
# Copyright 2019 Datadog, Inc.
5+
6+
print("Entered wrapper.py")
7+
58
import os
69
import logging
710
import traceback
@@ -377,3 +380,5 @@ def format_err_with_traceback(e):
377380

378381

379382
datadog_lambda_wrapper = _LambdaDecorator
383+
384+
print("Exiting wrapper.py")

0 commit comments

Comments
 (0)