Skip to content

Commit

Permalink
Removed server logging (issue #65)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Smit committed Jan 28, 2017
1 parent 539be1e commit 531b156
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions luamods/wolfadmin/util/logs.lua
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion luamods/wolfadmin/util/settings.lua
Expand Up @@ -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",
Expand Down

0 comments on commit 531b156

Please sign in to comment.