MCPcopy Index your code
hub / github.com/dianping/cat / errorHandler

Method errorHandler

lib/java/src/main/java/com/dianping/cat/Cat.java:138–144  ·  view source on GitHub ↗
(Exception e)

Source from the content-addressed store, hash-verified

136 }
137
138 private static void errorHandler(Exception e) {
139 if (isEnabled() && errorCount < 3) {
140 errorCount++;
141
142 CatLogger.getInstance().error(e.getMessage(), e);
143 }
144 }
145
146 public static String getCatHome() {
147 return Properties.forString().fromEnv().fromSystem().getProperty("CAT_HOME", "/data/appdatas/cat/");

Callers 15

checkAndInitializeMethod · 0.95
createMessageIdMethod · 0.95
getCurrentMessageIdMethod · 0.95
getManagerMethod · 0.95
getProducerMethod · 0.95
initializeMethod · 0.95
initializeByDomainMethod · 0.95
initializeInternalMethod · 0.95
logBatchEventMethod · 0.95
logErrorMethod · 0.95
logErrorWithCategoryMethod · 0.95

Calls 4

isEnabledMethod · 0.95
getInstanceMethod · 0.95
getMessageMethod · 0.65
errorMethod · 0.45

Tested by

no test coverage detected