diff --git a/lib/java/src/main/java/com/dianping/cat/message/internal/DefaultMessageManager.java b/lib/java/src/main/java/com/dianping/cat/message/internal/DefaultMessageManager.java index 98b9243206..9265ac78b2 100644 --- a/lib/java/src/main/java/com/dianping/cat/message/internal/DefaultMessageManager.java +++ b/lib/java/src/main/java/com/dianping/cat/message/internal/DefaultMessageManager.java @@ -181,10 +181,10 @@ public boolean isMessageEnabled() { } public boolean isTraceMode() { - Context content = getContext(); + Context ctx = getContext(); - if (content != null) { - return content.isTraceMode(); + if (ctx != null) { + return ctx.isTraceMode(); } else { return false; }