This adjusts the logging level for setting forecasts to failed to WARN. And it will only log if 1 or more forecasts were adjusted to failed.
This commit is contained in:
parent
afbf3bd33b
commit
61142a3005
|
@ -1356,7 +1356,9 @@ public class JobResultsProvider {
|
|||
|
||||
executeAsyncWithOrigin(client, ML_ORIGIN, UpdateByQueryAction.INSTANCE, request, ActionListener.wrap(
|
||||
response -> {
|
||||
LOGGER.info("[{}] set [{}] forecasts to failed", jobId, response.getUpdated());
|
||||
if (response.getUpdated() > 0) {
|
||||
LOGGER.warn("[{}] set [{}] forecasts to failed", jobId, response.getUpdated());
|
||||
}
|
||||
if (response.getBulkFailures().size() > 0) {
|
||||
LOGGER.warn(
|
||||
"[{}] failed to set [{}] forecasts to failed. Bulk failures experienced {}",
|
||||
|
|
Loading…
Reference in New Issue