Skip to content

v1.9.1

Compare
Choose a tag to compare
@release-drafter release-drafter released this 21 Dec 09:13
· 4201 commits to develop since this release
2d14c88

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

🌟 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

This release was made possible by the following contributors:

@GroovyDan, @Nr18, @cakepietoast, @dependabot, @dependabot[bot], @gmcrocetti, @heitorlessa and @michaelbrewer