mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Removed debug output for opening files which might spam server console
This commit is contained in:
parent
ad7b7c64e3
commit
f2458bb3a5
1 changed files with 0 additions and 8 deletions
|
@ -54,8 +54,6 @@ function files.open(fileName, fileMode, fileCreate)
|
|||
fileDescriptor, fileLength = files.create(fileName)
|
||||
end
|
||||
|
||||
outputDebug("util.files.open(): file "..fileName.." opened")
|
||||
|
||||
if fileMode == et.FS_READ then
|
||||
local fileString = et.trap_FS_Read(fileDescriptor, fileLength)
|
||||
|
||||
|
@ -70,7 +68,6 @@ function files.open(fileName, fileMode, fileCreate)
|
|||
end
|
||||
|
||||
function files.loadCFG(fileName, idExpr, fileCreate)
|
||||
local functionStart = et.trap_Milliseconds()
|
||||
local fileString = files.open(fileName, et.FS_READ, fileCreate)
|
||||
local arrayCount = 0
|
||||
local array = {}
|
||||
|
@ -94,13 +91,10 @@ function files.loadCFG(fileName, idExpr, fileCreate)
|
|||
table.insert(array[id], data)
|
||||
end
|
||||
|
||||
outputDebug("util.files.loadCFG(): "..arrayCount.." entries loaded in "..et.trap_Milliseconds() - functionStart.." ms")
|
||||
|
||||
return arrayCount, array
|
||||
end
|
||||
|
||||
function files.save(fileName, array)
|
||||
local functionStart = et.trap_Milliseconds()
|
||||
local fileDescriptor = files.open(fileName, et.FS_WRITE)
|
||||
local arrayCount = 0
|
||||
|
||||
|
@ -128,8 +122,6 @@ function files.save(fileName, array)
|
|||
|
||||
et.trap_FS_FCloseFile(fileDescriptor)
|
||||
|
||||
outputDebug("util.files.save(): "..arrayCount.." entries saved in "..et.trap_Milliseconds() - functionStart.." ms")
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue