log gui exceptions

This commit is contained in:
Fabian Dill 2020-04-14 18:57:39 +02:00
parent 7a38b426a0
commit e7073153e1
2 changed files with 3 additions and 1 deletions

1
Gui.py
View File

@ -1582,4 +1582,5 @@ def get_image_for_sprite(sprite):
return image.zoom(2)
if __name__ == '__main__':
logging.basicConfig(format='%(message)s', level=logging.INFO)
guiMain()

View File

@ -367,7 +367,8 @@ def fill_prizes(world, attempts=15):
random.shuffle(prize_locs)
fill_restrictive(world, all_state, prize_locs, prizepool, True)
except FillError as e:
logging.getLogger('').info("Failed to place dungeon prizes (%s). Will retry %s more times", e, attempts - attempt - 1)
logging.getLogger('').exception("Failed to place dungeon prizes (%s). Will retry %s more times", e,
attempts - attempt - 1)
for location in empty_crystal_locations:
location.item = None
continue