mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-02 00:49:11 +00:00
Increased logging
Original commit: elastic/x-pack-elasticsearch@375279fca5
This commit is contained in:
parent
45ee1d2d9b
commit
775f1cb878
@ -174,6 +174,7 @@ public class AlertActionManager extends AbstractComponent {
|
||||
String historyId = sh.getId();
|
||||
AlertActionEntry historyEntry = parseHistory(historyId, sh.getSourceRef(), sh.version(), actionRegistry);
|
||||
assert historyEntry.getState() == AlertActionState.SEARCH_NEEDED;
|
||||
logger.debug("Adding entry: [{}/{}/{}]", sh.index(), sh.type(), sh.id());
|
||||
actionsToBeProcessed.add(historyEntry);
|
||||
}
|
||||
response = client.prepareSearchScroll(response.getScrollId()).setScroll(scrollTimeout).get();
|
||||
|
@ -19,6 +19,7 @@ import org.elasticsearch.common.joda.time.DateTime;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.xcontent.XContentFactory;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.test.junit.annotations.TestLogging;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -54,6 +55,7 @@ public class BootStrapTest extends AbstractAlertingTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestLogging("alerts.actions:DEBUG")
|
||||
public void testBootStrapHistory() throws Exception {
|
||||
ensureAlertingStarted();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user