Skip to content

Commit

Permalink
Add trace logging
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed Apr 21, 2020
1 parent e91dd36 commit 8ea25cc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.elasticsearch.ingest.IngestMetadata;
import org.elasticsearch.ingest.PipelineConfiguration;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.junit.annotations.TestLogging;
import org.elasticsearch.threadpool.ScalingExecutorBuilder;
import org.elasticsearch.threadpool.TestThreadPool;
import org.elasticsearch.threadpool.ThreadPool;
Expand Down Expand Up @@ -145,6 +146,8 @@ public void testGetCachedModels() throws Exception {
verify(trainedModelProvider, times(4)).getTrainedModel(eq(model3), eq(true), any());
}

@TestLogging(value = "org.elasticsearch.xpack.ml.inference.loadingservice.ModelLoadingService:trace",
reason = "for loading events")
public void testMaxCachedLimitReached() throws Exception {
String model1 = "test-cached-limit-load-model-1";
String model2 = "test-cached-limit-load-model-2";
Expand Down

0 comments on commit 8ea25cc

Please sign in to comment.