add some extra verbose logging to __main__

This commit is contained in:
Joe S 2021-02-22 23:48:20 -05:00
parent 87fdc6b91e
commit 0c1770ef0a
1 changed files with 7 additions and 3 deletions

View File

@ -31,11 +31,15 @@ class AdventureGame(npyscreen.NPSAppManaged):
# Setup logging
self.log = logging
self.log.basicConfig(filename=self.mainPath / 'logs/AdventureGame.log', filemode='w', level=logging.DEBUG)
self.log.basicConfig(filename=self.mainPath / 'logs/AdventureGame.log',
filemode='w',
level=logging.DEBUG)
self.log.info('Logging started!')
# Parse world
# parse this data first (since it includes graphics for the main menu
self.gamelib = parse(
self.mainPath / 'gamedata/gamelib.yaml') # parse this data first (since it includes graphics for the main menu
self.mainPath / 'gamedata/gamelib.yaml')
self.log.debug('Gamelib at {0}'.format(self.mainPath / 'gamedata/gamelib.yaml'))
# Intalize the player as none, the player will be created in the main menu.
self.player = None