generated from root/miduo_server
日志调整
parent
9e8324412e
commit
e7ec4ec9c6
|
@ -71,7 +71,7 @@ public class MailDaoImpl implements MailDao {
|
|||
String[] uid = mail.getUserId().split("#");
|
||||
String sb = getItemStr(mail);
|
||||
for (String s : uid) {
|
||||
LOGGER.info("sendMail uid=>{},reward=>{}", s.trim(), sb);
|
||||
// LOGGER.info("sendMail uid=>{},reward=>{}", s.trim(), sb);
|
||||
MailPersonalCache mailPersonalCache = new MailPersonalCache();
|
||||
mailPersonalCache.setTitle(mail.getMailTitle());
|
||||
mailPersonalCache.setContent(mail.getMailContent());
|
||||
|
|
|
@ -126,15 +126,13 @@ public class SHotFixManager {
|
|||
public static <T> T getJsonFilePathInJsonConf(String fileName, Class<T> fileClass) {
|
||||
File file = new File(jsonPath + fileName);
|
||||
if (!file.exists()) {
|
||||
System.out.println("the {} is not exist" + fileName);
|
||||
// System.out.println("the {} is not exist" + fileName);
|
||||
return null;
|
||||
}
|
||||
try (InputStream in = new FileInputStream(file);) {
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
|
||||
return mapper.readValue(in, fileClass);
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue