Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to retrieve disabled loggers via devops API #1495

Conversation

jokraehe
Copy link
Contributor

The current implementation filters all loggers set to "off". Add query parameter to control that behaviour.

Signed-off-by: Johannes Schneider <johannes.schneider@bosch.io>
@jokraehe jokraehe marked this pull request as ready for review September 29, 2022 07:21
@thjaeckle thjaeckle added this to the 3.1.0 milestone Sep 29, 2022
Copy link
Contributor

@DerSchwilk DerSchwilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, other than that LGTM :)

@@ -73,17 +73,24 @@ public List<LoggerConfig> getLoggerConfig(@Nonnull final Iterable<String> logger
.map(logger -> (Logger) LoggerFactory.getLogger(logger))
.toList();

return loggerConfigsFor(loggerList);
return loggerConfigsFor(loggerList, true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason this is statically true?
Shouldn't this be either controlled via a parameter or set to false to resemble the prior behaviour?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

Signed-off-by: David Schwilk <david.schwilk@bosch.io>
@jokraehe jokraehe merged commit af7e2b9 into eclipse-ditto:master Sep 30, 2022
@DerSchwilk DerSchwilk deleted the feature/devops-retrieve-disabled-loggers branch September 30, 2022 08:09
This pull request was closed.
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