We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08bf514 commit 8ae6bc4Copy full SHA for 8ae6bc4
datadog_lambda/tracing.py
@@ -569,9 +569,8 @@ def inject_correlation_ids():
569
# Override the log format of the AWS provided LambdaLoggerHandler
570
root_logger = logging.getLogger()
571
for handler in root_logger.handlers:
572
- if (
573
- handler.__class__.__name__ == "LambdaLoggerHandler"
574
- and type(handler.formatter) == logging.Formatter
+ if handler.__class__.__name__ == "LambdaLoggerHandler" and isinstance(
+ handler.formatter, logging.Formatter
575
):
576
handler.setFormatter(
577
logging.Formatter(
0 commit comments