You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release addresses a regression introduced in version 1.6.0 of the Logging utility. The bug prevented the Service property from being updated after the initial Logger instantiation, even when set through the Handler.
Special thanks to @nCubed for reporting this issue (#702) and huge thanks to our first-time contributor @ankitdhaka07!
We greatly appreciate your contributions!
The root level Service property now correctly follows this priority order:
LoggingAttribute.Service (property value set in the decorator)
POWERTOOLS_SERVICE_NAME (environment variable)
Previously, if the Logger was initialized before the handler execution and the POWERTOOLS_SERVICE_NAME environment variable was set, the service value would remain unchanged even when the handler decorator specified a different value.
This release ensures that the Service property is correctly updated according to the priority resolution order, allowing the decorator's value to take precedence when specified.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
This release addresses a regression introduced in version 1.6.0 of the Logging utility. The bug prevented the Service property from being updated after the initial Logger instantiation, even when set through the Handler.
Logging v1.6.4
Special thanks to @nCubed for reporting this issue (#702) and huge thanks to our first-time contributor @ankitdhaka07!
We greatly appreciate your contributions!
Service Property Priority Resolution
Docs
The root level Service property now correctly follows this priority order:
POWERTOOLS_SERVICE_NAME
(environment variable)Previously, if the Logger was initialized before the handler execution and the
POWERTOOLS_SERVICE_NAME
environment variable was set, the service value would remain unchanged even when the handler decorator specified a different value.This release ensures that the Service property is correctly updated according to the priority resolution order, allowing the decorator's value to take precedence when specified.
Changes
📜 Documentation updates
🐛 Bug and hot fixes
🔧 Maintenance
This release was made possible by the following contributors:
@ankitdhaka07, @dependabot[bot], @hjgraca, @leandrodamascena, dependabot[bot]
This discussion was created from the release 1.19.
Beta Was this translation helpful? Give feedback.
All reactions