1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-22 01:48:50 +00:00

feat: 添加异常调试消息

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-08-28 20:55:36 +08:00
parent 9eca49d10f
commit 001d525c5a

View File

@ -75,6 +75,19 @@ public class Log {
}
}
/**
* 调试消息
*
* @param msg
* 消息
*/
public static void debug(final String msg, final Throwable e) {
if (debug) {
logger.info("[DEBUG] " + msg);
e.printStackTrace();
}
}
/**
* @return 获得插件前缀
*/