From 0c1770ef0ace5cb9b9789309ac2e9932877dd435 Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Mon, 22 Feb 2021 23:48:20 -0500 Subject: [PATCH] add some extra verbose logging to __main__ --- Adventure Game/adventure_game/__main__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Adventure Game/adventure_game/__main__.py b/Adventure Game/adventure_game/__main__.py index 7422f06..64ca805 100644 --- a/Adventure Game/adventure_game/__main__.py +++ b/Adventure Game/adventure_game/__main__.py @@ -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