
//错误
try{
}catch(Exception e){log.error("你的程序有异常啦");
} 
异常e都没有打印出来,所以压根不知道出了什么类型的异常
//错误
try{
}catch(Exception e){log.error("你的程序有异常啦" + e.getMessage());
}
 
e.getMessage()不会记录详细的堆栈异常信息,只会记录错误基本描述信息,不利于排查问题。
//正确
try{
}catch(Exception e){log.error("你的程序有异常啦" + e);
}