Skip to content

Commit e155986

Browse files
committed
guard debug output with a DEBUG check
1 parent a72a999 commit e155986

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

timestream.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ end
100100
local function check_new_unit(unit_id)
101101
local unit = df.unit.find(unit_id)
102102
if not unit then return end
103-
print('registering new unit', unit.id, dfhack.units.getReadableName(unit))
103+
if DEBUG >= 3 then
104+
print('registering new unit', unit.id, dfhack.units.getReadableName(unit))
105+
end
104106
register_birthday(unit)
105107
end
106108

0 commit comments

Comments
 (0)