Do not log every plugin load

Since we now load the user's module before the plugins\nwe avoid to log a line for each loaded plugin to not hide\nan eventual error in the user module
This commit is contained in:
Francesco Abbate 2021-02-19 16:12:56 +01:00
parent 68d9794926
commit 688dc1a7b8
1 changed files with 6 additions and 3 deletions

View File

@ -541,9 +541,12 @@ function core.load_plugins()
if config[basename] ~= false then
local modname = "plugins." .. basename
local ok = core.try(require, modname)
if ok then
core.log_quiet("Loaded plugin %q", modname)
else
-- Normally a log line is added for each loaded plugin which is a
-- good thing. Unfortunately we load the user module before the plugins
-- so all the messages here can fill the log screen and hide an evential
-- user module's error.
-- if ok then core.log_quiet("Loaded plugin %q", modname) end
if not ok then
no_errors = false
end
end