Skip to content

Commit

Permalink
guard debug output with a DEBUG check
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Aug 12, 2024
1 parent a72a999 commit e155986
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion timestream.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ end
local function check_new_unit(unit_id)
local unit = df.unit.find(unit_id)
if not unit then return end
print('registering new unit', unit.id, dfhack.units.getReadableName(unit))
if DEBUG >= 3 then
print('registering new unit', unit.id, dfhack.units.getReadableName(unit))
end
register_birthday(unit)
end

Expand Down

0 comments on commit e155986

Please sign in to comment.