better debug output

This commit is contained in:
Xinhao Yuan 2019-10-02 21:45:07 -04:00
parent bc84e7b537
commit 93c64f0fd4
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ function module.create(name, editor)
local lu = nil
local rd = nil
if not skip then
log(DEBUG, "Compute regions for " .. c.name)
log(DEBUG, "Compute regions for " .. c.name or ("<untitled:" .. tostring(c) .. ">"))
lu = find_lu(c, regions)
if lu ~= nil then
c.x = regions[lu].x
@ -208,7 +208,7 @@ function module.create(name, editor)
regions[c.machi_region].height - c.border_width * 2 == c.height
then
else
log(DEBUG, "Compute regions for " .. c.name)
log(DEBUG, "Compute regions for " .. c.name or ("<untitled:" .. tostring(c) .. ">"))
local region = find_region(c, regions)
c.machi_region = region
p.geometries[c] = {}