MCPcopy Create free account
hub / github.com/dianping/cat / logError

Method logError

cat-client/src/main/java/com/dianping/cat/Cat.java:89–97  ·  view source on GitHub ↗
(String message, Throwable cause)

Source from the content-addressed store, hash-verified

87 }
88
89 public static void logError(String message, Throwable cause) {
90 try {
91 Event event = TraceContextHelper.threadLocal().newEvent(message, cause);
92
93 event.complete();
94 } catch (Exception e) {
95 errorHandler(e);
96 }
97 }
98
99 public static void logError(Throwable cause) {
100 logError(null, cause);

Callers 15

runMethod · 0.95
runMethod · 0.95
generateConfigsHtmlMethod · 0.95
initializeMethod · 0.95
buildContactInfoMethod · 0.95
generateConfigsHtmlMethod · 0.95
initializeMethod · 0.95
executeRuleMethod · 0.95
checkDataByConditionMethod · 0.95
initializeMethod · 0.95
insertMethod · 0.95

Calls 4

threadLocalMethod · 0.95
completeMethod · 0.95
errorHandlerMethod · 0.95
newEventMethod · 0.65

Tested by 15

testSendMethod · 0.76
sendExceptionMethod · 0.76
sendErrorMethod · 0.76
sendTraceInfoMethod · 0.76
testExceptionMethod · 0.76
logErrorMethod · 0.76
testMethod · 0.76
initializeMethod · 0.76
storeConfigMethod · 0.76
testExceptionDedupMethod · 0.76