Skip to content

Commit 16f0e23

Browse files
authored
Delay import of logging initialization code. (#468)
* Delay import of logging initialization code. * Fix flake8 error.
1 parent a20395d commit 16f0e23

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

datadog_lambda/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from datadog_lambda.cold_start import initialize_cold_start_tracing
2-
from datadog_lambda.logger import initialize_logging
32
import os
43

54

@@ -20,4 +19,8 @@
2019

2120
__version__ = importlib_metadata.version(__name__)
2221

22+
23+
from datadog_lambda.logger import initialize_logging # noqa: E402
24+
25+
2326
initialize_logging(__name__)

0 commit comments

Comments
 (0)