|
@@ -27,7 +27,6 @@ public class LogHelper
|
|
|
RedisDbconn.Instance.Set(key, "1");
|
|
|
RedisDbconn.Instance.SetExpire(key, 600);
|
|
|
}
|
|
|
- function.WriteLog(Content, FileName);
|
|
|
if(sls)
|
|
|
{
|
|
|
Dictionary<string, string> dic = new Dictionary<string, string>();
|
|
@@ -35,6 +34,10 @@ public class LogHelper
|
|
|
dic.Add("Content", Content);
|
|
|
KxsRedisDbconn.Instance.AddList("SlsLogQueue", Newtonsoft.Json.JsonConvert.SerializeObject(dic));
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ function.WriteLog(Content, FileName);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public void Start()
|