From 688dc1a7b896e497623ab21cb8efcb75bf8d315e Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Fri, 19 Feb 2021 16:12:56 +0100 Subject: [PATCH] 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 --- data/core/init.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/data/core/init.lua b/data/core/init.lua index c56e8e61..d1a011b2 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -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