make sure the log doesn't get filled with redundant info
This commit is contained in:
@ -305,6 +305,11 @@ function package:ensureadded(force)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
l:set_load(function()
|
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,
|
logger:log("lazy", "triggered %d lazy hooks for %s", #self.lazy_load,
|
||||||
self.id)
|
self.id)
|
||||||
loadpkg(self)
|
loadpkg(self)
|
||||||
|
Reference in New Issue
Block a user