Commit df6907068e6f0e898c007a5f02132c5ccab5794e

Authored by zhaolu
1 parent c0bf89db

修改日志日期时间

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/services/logd.lua
@@ -30,6 +30,7 @@ local logHandle = { @@ -30,6 +30,7 @@ local logHandle = {
30 local now = skynet.timex() 30 local now = skynet.timex()
31 doc["time"] = now 31 doc["time"] = now
32 doc["timestamp"] = now 32 doc["timestamp"] = now
  33 + doc["@timestamp"] = os.date("%Y-%m-%dT%H:%M:%S", now - 8*3600)
33 doc["server"] = serverId 34 doc["server"] = serverId
34 doc["game_name"] = "wasteland" 35 doc["game_name"] = "wasteland"
35 doc["env"] = "cb" 36 doc["env"] = "cb"