Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ private void update() {
if (!main.equals(this.main)
|| !callBuilder.equals(this.callBuilder)
|| !watch.equals(this.watch)
|| !watch.equals(this.pod)
|| !pod.equals(this.featureGates)) {
LOGGER.info(MessageKeys.TUNING_PARAMETERS);
|| !pod.equals(this.pod)
|| !featureGates.equals(this.featureGates)) {
LOGGER.config(MessageKeys.TUNING_PARAMETERS);
}
this.main = main;
this.callBuilder = callBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private static String getCertificate(String path, String failureMessage) {
try {
return new String(Files.readAllBytes(GET_PATH.apply(path)));
} catch (IOException e) {
LOGGER.warning(failureMessage, path);
LOGGER.config(failureMessage, path);
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import static oracle.kubernetes.operator.logging.MessageKeys.NO_EXTERNAL_CERTIFICATE;
import static oracle.kubernetes.operator.logging.MessageKeys.NO_INTERNAL_CERTIFICATE;
import static oracle.kubernetes.utils.LogMatcher.containsConfig;
import static oracle.kubernetes.utils.LogMatcher.containsWarning;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.notNullValue;
Expand Down Expand Up @@ -76,10 +77,10 @@ public void whenNoExternalCertificateFile_returnNull() {
}

@Test
public void whenNoExternalCertificateFile_logWarningMessage() {
public void whenNoExternalCertificateFile_logConfigMessage() {
assertThat(Certificates.getOperatorExternalCertificateData(), nullValue());

assertThat(logRecords, containsWarning(NO_EXTERNAL_CERTIFICATE));
assertThat(logRecords, containsConfig(NO_EXTERNAL_CERTIFICATE));
}

@Test
Expand All @@ -97,10 +98,10 @@ public void whenNoInternalCertificateFile_returnNull() {
}

@Test
public void whenNoInternalCertificateFile_logWarningMessage() {
public void whenNoInternalCertificateFile_logConfigMessage() {
Certificates.getOperatorInternalCertificateData();

assertThat(logRecords, containsWarning(NO_INTERNAL_CERTIFICATE));
assertThat(logRecords, containsConfig(NO_INTERNAL_CERTIFICATE));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ public static LogMatcher containsSevere(String expectedMessage) {
return new LogMatcher(Level.SEVERE, expectedMessage);
}

public static LogMatcher containsConfig(String expectedMessage) {
return new LogMatcher(Level.CONFIG, expectedMessage);
}

public static LogMatcher containsFine(String expectedMessage) {
return new LogMatcher(Level.FINE, expectedMessage);
}
Expand Down