Skip to content

Conversation

@mrtus
Copy link
Contributor

@mrtus mrtus commented Jul 10, 2023

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Describe the solution you've provided

The warning message says what is going wrong, but not for what it is going wrong.
Adding a flag context value will help finding out which exact feature flag is having an invalid context

Describe alternatives you've considered

We could add this to the message but it is always better to use the logging context, see PSR-3

@mrtus mrtus marked this pull request as ready for review July 10, 2023 11:10
@louis-launchdarkly
Copy link
Contributor

Hello @mrtus, thank you for the contribution. We will review this and get back to you after that.

Filed Internally as 209083.

@keelerm84 keelerm84 changed the base branch from main to contrib July 11, 2023 17:03
@keelerm84 keelerm84 merged commit cf23ac1 into launchdarkly:contrib Jul 11, 2023
@mrtus mrtus deleted the refactor/log-key branch July 11, 2023 17:15
LaunchDarklyReleaseBot added a commit that referenced this pull request Jul 12, 2023
## [5.1.1] - 2023-07-11
### Changed:
- Invalid context log message now includes the flag key as part of the
Psr\Log context. (Thanks,
[mrtus](#179)!)
- Error logging now includes the exception in the Psr\Log exception
context key. (Thanks,
[mrtus](#177)!)

---------

Co-authored-by: Eli Bishop <[email protected]>
Co-authored-by: hroederld <[email protected]>
Co-authored-by: LaunchDarklyCI <[email protected]>
Co-authored-by: Ben Woskow <[email protected]>
Co-authored-by: Ben Woskow <[email protected]>
Co-authored-by: Gavin Whelan <[email protected]>
Co-authored-by: elliot <[email protected]>
Co-authored-by: Elliot Haisley <[email protected]>
Co-authored-by: Harpo Roeder <[email protected]>
Co-authored-by: LaunchDarklyReleaseBot <[email protected]>
Co-authored-by: Ember Stevens <[email protected]>
Co-authored-by: ember-stevens <[email protected]>
Co-authored-by: Matthew M. Keeler <[email protected]>
Co-authored-by: charukiewicz <[email protected]>
Co-authored-by: Joey Malinowski <[email protected]>
Co-authored-by: Christian Charukiewicz <[email protected]>
Co-authored-by: Matthew M. Keeler <[email protected]>
Co-authored-by: Colin Henwood <[email protected]>
Co-authored-by: Colin Henwood <[email protected]>
Co-authored-by: Eli Bishop <[email protected]>
Co-authored-by: Louis Chan <[email protected]>
Co-authored-by: ld-repository-standards[bot] <113625520+ld-repository-standards[bot]@users.noreply.github.com>
Co-authored-by: Kane Parkinson <[email protected]>
Co-authored-by: Michiel Devriese <[email protected]>
@keelerm84
Copy link
Member

Released in 5.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants