Skip to content

Commit

Permalink
1. 单元测试interceptor调整
Browse files Browse the repository at this point in the history
  • Loading branch information
weilong.hu committed Jan 11, 2021
1 parent ab317cb commit e578697
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package io.manbang.ebatis.sample.interceptor;

import com.google.auto.service.AutoService;
import io.manbang.ebatis.core.cluster.Cluster;
import io.manbang.ebatis.core.domain.ContextHolder;
import io.manbang.ebatis.core.interceptor.Interceptor;
import io.manbang.ebatis.core.interceptor.PostResponseInfo;
import io.manbang.ebatis.core.interceptor.PreResponseInfo;
import io.manbang.ebatis.core.interceptor.RequestInfo;
import io.manbang.ebatis.core.meta.MethodMeta;
import lombok.extern.slf4j.Slf4j;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionResponse;
Expand All @@ -31,7 +33,7 @@ public void handleException(Throwable throwable) {
}

@Override
public void preRequest(Object[] args) {
public void preRequest(Object[] args, Cluster cluster, MethodMeta meta) {
log.info("preRequest", args);
log.error("preRequest userId{}", ContextHolder.getString("userId"));

Expand Down

0 comments on commit e578697

Please sign in to comment.