History

TOOLS/lua/autoload: bump the msg-level of some logging

msg.info for when you're potentially adding hundreds of files is way too spammy and not really useful (autoload loads files, what?). Bump it up to msg.verbose. Also bump up the previously existing msg.verbose logs up to msg.debug to keep the difference in log levels. Fixes #12551.

Dudemanguy committed 3 years ago

Commit d147a061 parent ace4d251 file · +6 −6Browse files

Showing the changes to TOOLS/lua/autoload.lua (1 of 1 file). Show all

Unified · Split

TOOLS/lua/autoload.lua+6−6
@@ -215,10 +215,10 @@ function find_and_add_entries() · 214 unmodified lines
215 local dir, filename = utils.split_path(path)215 local dir, filename = utils.split_path(path)
216 msg.trace(("dir: %s, filename: %s"):format(dir, filename))216 msg.trace(("dir: %s, filename: %s"):format(dir, filename))
217 if o.disabled then217 if o.disabled then
218 msg.verbose("stopping: autoload disabled")218 msg.debug("stopping: autoload disabled")
219 return219 return
220 elseif #dir == 0 then220 elseif #dir == 0 then
221 msg.verbose("stopping: not a local path")221 msg.debug("stopping: not a local path")
222 return222 return
223 end223 end
224 224
@@ -227,7 +227,7 @@ function find_and_add_entries() · 2 unmodified lines
227 -- check if this is a manually made playlist227 -- check if this is a manually made playlist
228 if (pl_count > 1 and autoloaded == nil) or228 if (pl_count > 1 and autoloaded == nil) or
229 (pl_count == 1 and EXTENSIONS[string.lower(this_ext)] == nil) then229 (pl_count == 1 and EXTENSIONS[string.lower(this_ext)] == nil) then
230 msg.verbose("stopping: manually made playlist")230 msg.debug("stopping: manually made playlist")
231 return231 return
232 else232 else
233 if pl_count == 1 then233 if pl_count == 1 then
@@ -263,7 +263,7 @@ function find_and_add_entries() · 29 unmodified lines
263 end263 end
264 264
265 if next(files) == nil then265 if next(files) == nil then
266 msg.verbose("no other files or directories in directory")266 msg.debug("no other files or directories in directory")
267 return267 return
268 end268 end
269 269
@@ -298,10 +298,10 @@ function find_and_add_entries() · 28 unmodified lines
298 -- skip files that are/were already in the playlist298 -- skip files that are/were already in the playlist
299 if not added_entries[file] then299 if not added_entries[file] then
300 if direction == -1 then300 if direction == -1 then
301 msg.info("Prepending " .. file)301 msg.verbose("Prepending " .. file)
302 table.insert(append[-1], 1, {file, pl_current + i * direction + 1})302 table.insert(append[-1], 1, {file, pl_current + i * direction + 1})
303 else303 else
304 msg.info("Adding " .. file)304 msg.verbose("Adding " .. file)
305 if pl_count > 1 then305 if pl_count > 1 then
306 table.insert(append[1], {file, pl_current + i * direction - 1})306 table.insert(append[1], {file, pl_current + i * direction - 1})
307 else307 else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t