Increased logging

Original commit: elastic/x-pack-elasticsearch@375279fca5
This commit is contained in:
Martijn van Groningen 2014-11-27 09:53:10 +01:00
parent 45ee1d2d9b
commit 775f1cb878
2 changed files with 3 additions and 0 deletions

View File

@ -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();

View File

@ -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();