Skip to content

Conversation

@joshjennings98
Copy link
Contributor

Description

Make sure that loggers added in NewMultipleLoggers don't fail with 'No Logger Source'.

NewMultipleLoggers calls Append to add the loggers, this tries to call c.setLoggerSource but at this point the base logger hasn't had it's source set. This change makes sure that the source is set earlier in the process.

It also adds a test that initialises the loggers with NewMultipleLoggers as there wasn't a test which is why this problem was missed.

Test Coverage

  • This change is covered by existing or additional automated tests.
  • Manual testing has been performed (and evidence provided) as automated testing was not feasible.
  • Additional tests are not required for this change (e.g. documentation update).

@joshjennings98 joshjennings98 merged commit fa05a6c into master Apr 24, 2024
@joshjennings98 joshjennings98 deleted the loggers branch April 24, 2024 12:37
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