pypi aws-lambda-powertools 1.9.1
v1.9.1

latest releases: 3.3.1a0, 3.3.0, 3.2.1a15...
3 years ago

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

Don't miss a new aws-lambda-powertools release

NewReleases is sending notifications on new releases.