Remove very excessive logs

This commit is contained in:
Gabriel Tofvesson 2024-10-14 11:33:24 +02:00
parent 33e0e54477
commit a8652adafe

View File

@ -32,7 +32,7 @@ function Element:new(o)
end
function Element:draw()
Logger:trace("draw", self)
Logger:trace("draw")
local dirty = self:_isDirty()
if dirty then
local win = self:_getWindow()
@ -80,7 +80,7 @@ function Element:setY(y)
end
function Element:setParent(parent)
Logger:trace("setParent", self, parent)
Logger:trace("setParent", self:getId(), parent, self.parent ~= parent)
if self.parent ~= parent then
self.parent = parent
self:setDirty()
@ -212,6 +212,7 @@ function Element:setOnClick(onClick)
end
function Element:_reload()
Logger:trace("_reload", self)
if self.parent ~= nil then
local win = window.create(self.parent, self:getX(), self:getY(), self:getWidth(), self:getHeight(), self:isVisible())
win.setBackgroundColor(self:getBgColor())