Skip to content

Commit d4f48cc

Browse files
author
Tom Barnes
committed
i18n a particular Operator log
1 parent 9007881 commit d4f48cc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

operator/src/main/java/oracle/kubernetes/operator/helpers/JobHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ private static void convertJobLogsToOperatorLogs(String jobLogs) {
476476
}
477477
}
478478
} catch (IOException ioe) {
479-
LOGGER.fine("Unexpected exception " + ioe + " while parsing string:\n" + jobLogs);
479+
LOGGER.fine(MessageKeys.JOB_LOG_PARSE_FAILURE, ioe.toString(), jobLogs);
480480
}
481481
}
482482
}

operator/src/main/java/oracle/kubernetes/operator/logging/MessageKeys.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public class MessageKeys {
154154
public static final String EXTERNAL_CHANNEL_SERVICE_EXISTS = "WLSKO-0152";
155155
public static final String WLS_HEALTH_READ_FAILED_NO_HTTPCLIENT = "WLSKO-0153";
156156
public static final String JOB_DEADLINE_EXCEEDED_MESSAGE = "WLSKO-0154";
157+
public static final String JOB_LOG_PARSE_FAILURE = "WLSKO-0155";
157158

158159
private MessageKeys() {
159160
}

operator/src/main/resources/Operator.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,4 @@ WLSKO-0154=Job {0} failed due to reason: DeadlineExceeded. \
160160
The job may be retried by the operator up to {3} \
161161
times with longer ActiveDeadlineSeconds value in each subsequent retry. \
162162
Use tuning parameter 'domainPresenceFailureRetryMaxCount' to configure max retries.
163-
163+
WLSKO-0155=Unexpected exception, {0}, while parsing introspect job log [{1}].

0 commit comments

Comments
 (0)