Compare commits

1 Commits

Author SHA1 Message Date
029e8de852 Log teleporter replacements instead of printing to STDOUT 2026-01-24 20:58:20 -06:00

View File

@@ -219,7 +219,7 @@ class World(object):
else:
if item.name == 'Teleporter':
from Items import ItemFactory
print('Cannot assign item %s to location %s, replacing with red rupee.' % (item, location))
logging.getLogger('').info('Cannot assign item %s to location %s, replacing with red rupee.' % (item, location))
self.push_item(location, ItemFactory('Rupees (20)', item.player), collect)
else:
raise RuntimeError('Cannot assign item %s to location %s.' % (item, location))