mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Changed some debug logs to trace
This commit is contained in:
parent
1325014a03
commit
02236576c0
@ -110,7 +110,9 @@ public class CallContext {
|
|||||||
CallContext callingContext = new CallContext(callingUser, callingAccount, contextId);
|
CallContext callingContext = new CallContext(callingUser, callingAccount, contextId);
|
||||||
s_currentContext.set(callingContext);
|
s_currentContext.set(callingContext);
|
||||||
NDC.push("ctx-" + UuidUtils.first(contextId));
|
NDC.push("ctx-" + UuidUtils.first(contextId));
|
||||||
s_logger.debug("Setting calling context: " + callingContext);
|
if (s_logger.isTraceEnabled()) {
|
||||||
|
s_logger.trace("Registered: " + callingContext);
|
||||||
|
}
|
||||||
return callingContext;
|
return callingContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,11 +163,13 @@ public class CallContext {
|
|||||||
public static CallContext unregister() {
|
public static CallContext unregister() {
|
||||||
CallContext context = s_currentContext.get();
|
CallContext context = s_currentContext.get();
|
||||||
if (context == null) {
|
if (context == null) {
|
||||||
s_logger.trace("No context to remove");
|
s_logger.debug("No context to remove");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
s_currentContext.remove();
|
s_currentContext.remove();
|
||||||
s_logger.debug("Context removed " + context);
|
if (s_logger.isTraceEnabled()) {
|
||||||
|
s_logger.trace("Unregistered: " + context);
|
||||||
|
}
|
||||||
String contextId = context.getContextId();
|
String contextId = context.getContextId();
|
||||||
String sessionIdOnStack = null;
|
String sessionIdOnStack = null;
|
||||||
String sessionIdPushedToNDC = "ctx-" + UuidUtils.first(contextId);
|
String sessionIdPushedToNDC = "ctx-" + UuidUtils.first(contextId);
|
||||||
@ -210,9 +214,9 @@ public class CallContext {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new StringBuffer("CallContext[acct=").append(account.getId())
|
return new StringBuffer("CCtxt[acct=").append(account.getId())
|
||||||
.append("; user=").append(user.getId())
|
.append("; user=").append(user.getId())
|
||||||
.append("; session=").append(contextId)
|
.append("; id=").append(contextId)
|
||||||
.append("]").toString();
|
.append("]").toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user