Commit a89e7924 authored by yanzg's avatar yanzg

修复等待时间

parent 0a563556
package com.yanzuoguang.util.log;
import com.yanzuoguang.util.extend.ConfigBase;
import com.yanzuoguang.util.helper.StringHelper;
import java.util.Date;
import java.util.HashMap;
......@@ -30,7 +31,8 @@ public class Log {
* @param args
*/
public static void error(Class<?> cls, String msg, Object... args) {
error(cls, null, msg, args);
String toMsg = getFormat(msg, args);
add(new LogInfo(cls, new Date(), true, null, toMsg));
}
/**
......@@ -39,7 +41,7 @@ public class Log {
* @param ex
*/
public static void error(Class<?> cls, Throwable ex) {
error(cls, ex, "");
add(new LogInfo(cls, new Date(), ex != null, ex, StringHelper.EMPTY));
}
/**
......@@ -51,7 +53,7 @@ public class Log {
*/
public static void error(Class<?> cls, Throwable ex, String msg, Object... args) {
String toMsg = getFormat(msg, args);
add(new LogInfo(cls, new Date(), true, ex, toMsg));
add(new LogInfo(cls, new Date(), ex != null, ex, toMsg));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment