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:
+6
-3
@@ -541,9 +541,12 @@ function core.load_plugins()
|
|||||||
if config[basename] ~= false then
|
if config[basename] ~= false then
|
||||||
local modname = "plugins." .. basename
|
local modname = "plugins." .. basename
|
||||||
local ok = core.try(require, modname)
|
local ok = core.try(require, modname)
|
||||||
if ok then
|
-- Normally a log line is added for each loaded plugin which is a
|
||||||
core.log_quiet("Loaded plugin %q", modname)
|
-- good thing. Unfortunately we load the user module before the plugins
|
||||||
else
|
-- 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
|
no_errors = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user