From 6c00e73541b777dc667c58f8791de10576a225e1 Mon Sep 17 00:00:00 2001 From: Surya Sashank Nistala Date: Wed, 20 Dec 2023 15:20:48 -0800 Subject: [PATCH] fix log messages Signed-off-by: Surya Sashank Nistala --- .../org/opensearch/alerting/DocumentLevelMonitorRunner.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt b/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt index a0d661465..5fec8df7e 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt @@ -742,7 +742,9 @@ object DocumentLevelMonitorRunner : MonitorRunner() { } if (response.status() !== RestStatus.OK) { - throw IOException("Failed to search percolate index: $queryIndex. Response status is ${response.status()}") + throw IOException( + "Monitor ${monitor.id}: Failed to search percolate index: $queryIndex. Response status is ${response.status()}" + ) } return response.hits }