MCPcopy Create free account
hub / github.com/e2wugui/zeze / traceInfo

Method traceInfo

ZezeJava/ZezeJavaTest/src/SimpleRaft/RaftTest.java:144–152  ·  view source on GitHub ↗
(@NotNull String info)

Source from the content-addressed store, hash-verified

142 }
143
144 @Override
145 public void traceInfo(@NotNull String info) {
146 strBuf.setLength(0);
147 date.setTime(System.currentTimeMillis());
148 dtf.format(date, strBuf, fieldPos);
149 System.out.println(strBuf.append(" [Raft-").append(id).append(':')
150 .append(raft != null ? raft.getTerm() : -1).append("] [").append(curTime).append("] ")
151 .append(info));
152 }
153
154 @Override
155 public @NotNull String toString() {

Callers

nothing calls this directly

Calls 5

setLengthMethod · 0.80
formatMethod · 0.80
setTimeMethod · 0.45
appendMethod · 0.45
getTermMethod · 0.45

Tested by

no test coverage detected