Commit 790a64e1 authored by yanzg's avatar yanzg

MQ消费者拦截

parent 01bd4fe7
......@@ -44,10 +44,11 @@ public class MqAspect extends BaseRequestAspect {
Log.threadBegin();
long start = System.currentTimeMillis();
String name = joinPoint.getSignature().getName();
logger.info("[ {} ] request params is {}", name, joinPoint.getArgs());
try {
Object ret = executeMethod(joinPoint, name);
long end = System.currentTimeMillis();
logger.error("[ {} ] time ({})ms, result is {}", name, (end - start), ret);
logger.info("[ {} ] time ({})ms, result is {}", name, (end - start), ret);
return ret;
} catch (Exception e) {
long end = System.currentTimeMillis();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment