From 531b156cd77543c313eefc654db483e0cf13bc5b Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Sat, 28 Jan 2017 16:17:25 +0100 Subject: [PATCH] Removed server logging (issue #65) --- luamods/wolfadmin/util/logs.lua | 10 ---------- luamods/wolfadmin/util/settings.lua | 1 - 2 files changed, 11 deletions(-) diff --git a/luamods/wolfadmin/util/logs.lua b/luamods/wolfadmin/util/logs.lua index 149de05..8e4f202 100644 --- a/luamods/wolfadmin/util/logs.lua +++ b/luamods/wolfadmin/util/logs.lua @@ -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) diff --git a/luamods/wolfadmin/util/settings.lua b/luamods/wolfadmin/util/settings.lua index 2083a50..28f6fca 100644 --- a/luamods/wolfadmin/util/settings.lua +++ b/luamods/wolfadmin/util/settings.lua @@ -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",