From 62df9b5a9ed10fec97193c3a0b54f21da3de76b1 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Wed, 16 Mar 2022 14:27:48 +0800 Subject: [PATCH] update --- .../main/java/com/jeesite/common/lang/ObjectUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/com/jeesite/common/lang/ObjectUtils.java b/common/src/main/java/com/jeesite/common/lang/ObjectUtils.java index 1f6afd7d..75e824a0 100644 --- a/common/src/main/java/com/jeesite/common/lang/ObjectUtils.java +++ b/common/src/main/java/com/jeesite/common/lang/ObjectUtils.java @@ -171,7 +171,7 @@ public class ObjectUtils extends org.apache.commons.lang3.ObjectUtils { return ObjectUtils.serializeFst(object); } } catch (Exception e) { - logger.error("serialize", e); + logger.error("serialize", e.getMessage()); } return null; } @@ -189,7 +189,7 @@ public class ObjectUtils extends org.apache.commons.lang3.ObjectUtils { return ObjectUtils.unserializeFst(bytes); } } catch (Exception e) { - logger.error("unserialize", e); + logger.error("unserialize", e.getMessage()); } return null; } @@ -210,7 +210,7 @@ public class ObjectUtils extends org.apache.commons.lang3.ObjectUtils { oos.writeObject(object); bytes = baos.toByteArray(); } catch (Exception e) { - e.printStackTrace(); + throw new RuntimeException(e); } long totalTime = System.currentTimeMillis() - beginTime; if (totalTime > 30000){ @@ -235,7 +235,7 @@ public class ObjectUtils extends org.apache.commons.lang3.ObjectUtils { ObjectInputStream ois = new ObjectInputStream(bais);) { object = ois.readObject(); } catch (Exception e) { - e.printStackTrace(); + throw new RuntimeException(e); } } long totalTime = System.currentTimeMillis() - beginTime;