add some extra verbose logging to __main__
This commit is contained in:
parent
87fdc6b91e
commit
0c1770ef0a
|
@ -31,11 +31,15 @@ class AdventureGame(npyscreen.NPSAppManaged):
|
||||||
|
|
||||||
# Setup logging
|
# Setup logging
|
||||||
self.log = 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.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.
|
# Intalize the player as none, the player will be created in the main menu.
|
||||||
self.player = None
|
self.player = None
|
||||||
|
|
Loading…
Reference in New Issue