make sure the log doesn't get filled with redundant info

This commit is contained in:
2025-06-24 17:20:37 -04:00
parent 0789260637
commit b7218c64c2

View File

@ -305,6 +305,11 @@ function package:ensureadded(force)
return false
end
l:set_load(function()
-- ensure that we can't attempt to load a plugin twice via lazy loading
if self.loaded then
return
end
logger:log("lazy", "triggered %d lazy hooks for %s", #self.lazy_load,
self.id)
loadpkg(self)