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

Unified · Split

TOOLS/lua/autoload.lua+6−6
@@ -215,10 +215,10 @@ function find_and_add_entries() · 214 unmodified lines
215215 local dir, filename = utils.split_path(path)
216216 msg.trace(("dir: %s, filename: %s"):format(dir, filename))
217217 if o.disabled then
218− msg.verbose("stopping: autoload disabled")
218+ msg.debug("stopping: autoload disabled")
219219 return
220220 elseif #dir == 0 then
221− msg.verbose("stopping: not a local path")
221+ msg.debug("stopping: not a local path")
222222 return
223223 end
224224
@@ -227,7 +227,7 @@ function find_and_add_entries() · 2 unmodified lines
227227 -- check if this is a manually made playlist
228228 if (pl_count > 1 and autoloaded == nil) or
229229 (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")
231231 return
232232 else
233233 if pl_count == 1 then
@@ -263,7 +263,7 @@ function find_and_add_entries() · 29 unmodified lines
263263 end
264264
265265 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")
267267 return
268268 end
269269
@@ -298,10 +298,10 @@ function find_and_add_entries() · 28 unmodified lines
298298 -- skip files that are/were already in the playlist
299299 if not added_entries[file] then
300300 if direction == -1 then
301− msg.info("Prepending " .. file)
301+ msg.verbose("Prepending " .. file)
302302 table.insert(append[-1], 1, {file, pl_current + i * direction + 1})
303303 else
304− msg.info("Adding " .. file)
304+ msg.verbose("Adding " .. file)
305305 if pl_count > 1 then
306306 table.insert(append[1], {file, pl_current + i * direction - 1})
307307 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