Skip to content

Commit

Permalink
[#60feature/#60-restlib] sonar issues fixed
Browse files Browse the repository at this point in the history
Signed-off-by: huluvu424242 <huluvu424242@gmail.com>
  • Loading branch information
Huluvu424242 committed Jan 25, 2023
1 parent ae786b9 commit 4877508
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,19 @@ public Loaded resetLoggerConfiguration() {

// applog.level
final String applogLevel = configurationProperties.getProperty("applog.level");
if (Arrays.stream(LOG_LEVEL).anyMatch(entry -> entry.equals(applogLevel))) {
if (Arrays.asList(LOG_LEVEL).contains(applogLevel)) {
System.setProperty("applog.level", applogLevel);
}

// applog.appender
final String applogAppender = configurationProperties.getProperty("applog.appender");
if (Arrays.stream(LOG_APPENDER).anyMatch(entry -> entry.equals(applogAppender))) {
if (Arrays.asList(LOG_APPENDER).contains(applogAppender)) {
System.setProperty("applog.appender", applogAppender);
}

// rootlog.level
final String rootlogLevel = configurationProperties.getProperty("rootlog.level");
if (Arrays.stream(LOG_LEVEL).anyMatch(entry -> entry.equals(rootlogLevel))) {
if (Arrays.asList(LOG_LEVEL).contains(rootlogLevel)) {
System.setProperty("rootlog.level", rootlogLevel);
}

Expand Down

0 comments on commit 4877508

Please sign in to comment.