make sure the log doesn't get filled with redundant info
This commit is contained in:
parent
0789260637
commit
b7218c64c2
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue