Ver código fonte

优化访问日志参数序列化逻辑

zhouhao 7 anos atrás
pai
commit
1b26b267f5

+ 1 - 1
hsweb-logging/hsweb-access-logging-api/src/main/java/org/hswebframework/web/logging/AccessLoggerInfo.java

@@ -214,7 +214,7 @@ public class AccessLoggerInfo {
         map.put("target", target != null ? target.getName() : "");
         Map<String, Object> newParameter = new LinkedHashMap<>(parameters);
         newParameter.entrySet().forEach(entry -> {
-            if (entry.getValue() != null && !(entry.getValue() instanceof Serializable)) {
+            if (entry.getValue() != null) {
                 entry.setValue(noSerialExchange.apply(entry.getValue()));
             }
         });