Skip to content

Commit 65413a2

Browse files
committed
set log level of loading to info
1 parent 3b526aa commit 65413a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

script/workspace/loading.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ function mt:loadFile(uri, libraryUri)
8686
files.addRef(uri)
8787
end
8888
self._cache[uri] = true
89-
log.debug(('Skip loaded file: %s'):format(uri))
89+
log.info(('Skip loaded file: %s'):format(uri))
9090
else
9191
local content = pub.awaitTask('loadFile', furi.decode(uri))
9292
self.read = self.read + 1
9393
self:update()
9494
if not content then
9595
return
9696
end
97-
log.debug(('Preload file at: %s , size = %.3f KB'):format(uri, #content / 1024.0))
97+
log.info(('Preload file at: %s , size = %.3f KB'):format(uri, #content / 1024.0))
9898
--await.wait(function (waker)
9999
-- self._sets[#self._sets+1] = waker
100100
--end)
@@ -106,7 +106,7 @@ function mt:loadFile(uri, libraryUri)
106106
self._cache[uri] = true
107107
end
108108
if libraryUri then
109-
log.debug('++++As library of:', libraryUri)
109+
log.info('++++As library of:', libraryUri)
110110
end
111111
end
112112
elseif files.isDll(uri) then
@@ -121,15 +121,15 @@ function mt:loadFile(uri, libraryUri)
121121
files.addRef(uri)
122122
end
123123
self._cache[uri] = true
124-
log.debug(('Skip loaded file: %s'):format(uri))
124+
log.info(('Skip loaded file: %s'):format(uri))
125125
else
126126
local content = pub.awaitTask('loadFile', furi.decode(uri))
127127
self.read = self.read + 1
128128
self:update()
129129
if not content then
130130
return
131131
end
132-
log.debug(('Preload dll at: %s , size = %.3f KB'):format(uri, #content / 1024.0))
132+
log.info(('Preload dll at: %s , size = %.3f KB'):format(uri, #content / 1024.0))
133133
--await.wait(function (waker)
134134
-- self._sets[#self._sets+1] = waker
135135
--end)
@@ -140,7 +140,7 @@ function mt:loadFile(uri, libraryUri)
140140
self._cache[uri] = true
141141
end
142142
if libraryUri then
143-
log.debug('++++As library of:', libraryUri)
143+
log.info('++++As library of:', libraryUri)
144144
end
145145
end
146146
end

0 commit comments

Comments
 (0)