Fix error message for state index creation
Original commit: elastic/x-pack-elasticsearch@cd36db071e7005171d50abb3e9218ee43b04dce2
@@ -149,7 +149,7 @@ public class JobProvider {
}
});
- } catch (IOException e) {
+ } catch (Exception e) {
LOGGER.warn("Error creating the usage metering index", e);
}
}
@@ -299,7 +299,7 @@ public class JobProvider {
}
});
} catch (Exception e) {
- LOGGER.warn("Error creating the usage metering index", e);
+ LOGGER.error("Error creating the " + AnomalyDetectorsIndex.jobStateIndexName() + " index", e);
}
}
