mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Removed server logging (issue #65)
This commit is contained in:
parent
539be1ee7b
commit
531b156cd7
2 changed files with 0 additions and 11 deletions
|
@ -22,16 +22,6 @@ local settings = require (wolfa_getLuaPath()..".util.settings")
|
|||
|
||||
local logs = {}
|
||||
|
||||
function logs.writeServer(...)
|
||||
local fileDescriptor = files.open(settings.get("g_logServer"), et.FS_APPEND)
|
||||
|
||||
local logLine = string.format("[%s] %s\n", os.date("%Y-%m-%d %H:%M:%S"), table.concat({...}, " "))
|
||||
|
||||
et.trap_FS_Write(logLine, string.len(logLine), fileDescriptor)
|
||||
|
||||
et.trap_FS_FCloseFile(fileDescriptor)
|
||||
end
|
||||
|
||||
function logs.writeChat(clientId, type, ...)
|
||||
local fileDescriptor = files.open(settings.get("g_logChat"), et.FS_APPEND)
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ local events = require (wolfa_getLuaPath()..".util.events")
|
|||
local settings = {}
|
||||
|
||||
local data = {
|
||||
["g_logServer"] = "server.log",
|
||||
["g_logChat"] = "chat.log",
|
||||
["g_logAdmin"] = "admin.log",
|
||||
["g_fileGreetings"] = "greetings.cfg",
|
||||
|
|
Loading…
Reference in a new issue