mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
🎨 Improving structure / format of the code.
This commit is contained in:
parent
d609e50873
commit
4eb805c723
@ -55,7 +55,8 @@ public class SysLogAspect {
|
||||
EvaluationContext context = SysLogUtils.getContext(point.getArgs(), signature.getMethod());
|
||||
try {
|
||||
value = SysLogUtils.getValue(context, expression, String.class);
|
||||
} catch (Exception e) {
|
||||
}
|
||||
catch (Exception e) {
|
||||
// SPEL 表达式异常,获取 value 的值
|
||||
log.error("@SysLog 解析SPEL {} 异常", expression);
|
||||
}
|
||||
|
@ -98,7 +98,6 @@ public class SysLogUtils {
|
||||
|
||||
/**
|
||||
* 获取spel 定义的参数值
|
||||
*
|
||||
* @param context 参数容器
|
||||
* @param key key
|
||||
* @param clazz 需要返回的类型
|
||||
@ -113,7 +112,6 @@ public class SysLogUtils {
|
||||
|
||||
/**
|
||||
* 获取参数容器
|
||||
*
|
||||
* @param arguments 方法的参数列表
|
||||
* @param signatureMethod 被执行的方法体
|
||||
* @return 装载参数的容器
|
||||
@ -129,4 +127,5 @@ public class SysLogUtils {
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user