Log teleporter replacements instead of printing to STDOUT

This commit is contained in:
2026-01-24 20:58:20 -06:00
parent ca9af423db
commit 029e8de852

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))