Removed server logging (issue #65)

This commit is contained in:
Timo Smit 2017-01-28 16:17:25 +01:00
parent 539be1ee7b
commit 531b156cd7
2 changed files with 0 additions and 11 deletions

View file

@ -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)

View file

@ -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",