Skip to content

Commit

Permalink
feat: add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yushuwang committed Nov 15, 2023
1 parent 25df2d5 commit 94f524c
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import com.arextest.schedule.extension.invoker.InvokerConstants;
import com.arextest.schedule.extension.invoker.ReplayExtensionInvoker;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -42,4 +44,14 @@ public DubboInvocation(String url, Map<String, String> attachments, String inter
List<String> parameterTypes, List<Object> parameters) {
this(url, attachments, interfaceName, methodName, parameterTypes, parameters, null);
}

@Override
public String toString() {
ObjectMapper objectMapper = new ObjectMapper();
try {
return objectMapper.writeValueAsString(this);
} catch (JsonProcessingException e) {
return "transformJson failed";
}
}
}

0 comments on commit 94f524c

Please sign in to comment.