made fs attribute loading spam the log less.

This commit is contained in:
Izaya 2017-09-15 15:40:08 +10:00
parent c1005e3ae6
commit 016e4f2d58
1 changed files with 0 additions and 4 deletions

View File

@ -146,19 +146,15 @@ do
if not f then return false end
local C=fs.readall(f)
fs.close(f)
log(C)
for line in C:gmatch("[^\n]+") do
local ifn = true
local fn = ""
for kv in line:gmatch("[^\t]+") do
if ifn then
fn = kv
log(fn)
ifn = false
else
log("attr: "..kv)
local k,v = kv:match("(.+)%=(.+)")
log(tostring(k),tostring(v))
setattr(fn,k,v)
end
end