Changes
This patch release fixes a bug when multiple parent Loggers with the same name are configured multiple times, as per #249.
from aws_lambda_powertools import Logger
class Class1:
logger = Logger("class_1")
@staticmethod
def f_1():
Class1.logger.info("log from class_1")
class Class2:
logger = Logger("class_1")
@staticmethod
def f_2():
Class2.logger.info("log from class_2")
Class1.f_1()
Class2.f_2()
This release also adds brings staged changes initially planned for 1.10 such as minor improvements in Tracer documentation, brings equality checks to ease testing Event source data classes utility, and initial work for MyPy support (PEP 561).
πNew features and non-breaking changes
- feat: PEP-561 compliance (#237) by @gmcrocetti
π Minor Changes
- improv: Added eq function to DictWrapper for better equality checks (#233) by @GroovyDan
- test(general): Add missing tests for parser (#232) by @michaelbrewer
- docs: add clarification to Tracer docs for
capture_method
(#244) by @cakepietoast - test: DictWrapper equals method (#234) by @Nr18
- chore: implement phony targets correctly (#235) by @Nr18
π Bug and hot fixes
- fix: prevent touching preconfigured loggers #249 (#250) by @heitorlessa
This release was made possible by the following contributors:
@GroovyDan, @Nr18, @cakepietoast, @dependabot, @dependabot[bot], @gmcrocetti, @heitorlessa and @michaelbrewer