improve log messages

This commit is contained in:
Shinsuke Sugaya 2019-05-12 17:11:51 +09:00
parent 85703017cd
commit 16a30ae75e
3 changed files with 3 additions and 3 deletions

View file

@ -555,7 +555,7 @@ public abstract class EsAbstractBehavior<ENTITY extends Entity, CB extends Condi
protected SearchHits getSearchHits(final SearchResponse response) {
SearchHits hits = response.getHits();
if (hits == null) {
throw new IllegalBehaviorStateException("hits is null." + response.status());
throw new IllegalBehaviorStateException("hits is null: " + response);
}
return hits;
}

View file

@ -555,7 +555,7 @@ public abstract class EsAbstractBehavior<ENTITY extends Entity, CB extends Condi
protected SearchHits getSearchHits(final SearchResponse response) {
SearchHits hits = response.getHits();
if (hits == null) {
throw new IllegalBehaviorStateException("hits is null." + response.status());
throw new IllegalBehaviorStateException("hits is null: " + response);
}
return hits;
}

View file

@ -555,7 +555,7 @@ public abstract class EsAbstractBehavior<ENTITY extends Entity, CB extends Condi
protected SearchHits getSearchHits(final SearchResponse response) {
SearchHits hits = response.getHits();
if (hits == null) {
throw new IllegalBehaviorStateException("hits is null." + response.status());
throw new IllegalBehaviorStateException("hits is null: " + response);
}
return hits;
}