GITLAB
wasteland
/
server
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Issues
0
Merge Requests
0
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
df6907068e6f0e898c007a5f02132c5ccab5794e
Authored by
zhaolu
2021-12-20 09:53:39 +0800
1 parent
c0bf89db
修改日志日期时间
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/services/logd.lua
Inline
Side-by-side
src/services/logd.lua
Wrap text
Show/Hide comments
View file @
df69070
...
...
@@ -30,6 +30,7 @@ local logHandle = {
30
30
local now = skynet.timex()
31
31
doc["time"] = now
32
32
doc["timestamp"] = now
33
+ doc["@timestamp"] = os.date("%Y-%m-%dT%H:%M:%S", now - 8*3600)
33
34
doc["server"] = serverId
34
35
doc["game_name"] = "wasteland"
35
36
doc["env"] = "cb"
...
...