Added debugging output

This commit is contained in:
codemann8
2020-12-12 07:02:20 -06:00
parent 1add1222e1
commit 0627acb662

View File

@@ -1792,7 +1792,7 @@ def create_doors_for_inaccessible_region(inaccessible_region, world, player):
for ext in region.exits:
create_door(world, player, ext.name, region.name)
if ext.connected_region is None:
print("ERROR: Exit not connected to any region: " + ext.name)
logging.getLogger('').error('Exit not connected to any region: %s', ext.name)
if ext.connected_region.name.endswith(' Portal'):
for more_exts in ext.connected_region.exits:
create_door(world, player, more_exts.name, ext.connected_region.name)