Logging reduziert.

This commit is contained in:
Olli Graf
2022-05-12 19:27:44 +02:00
parent f702995afd
commit fd3187e61e
3 changed files with 3 additions and 5 deletions

View File

@@ -248,5 +248,4 @@ class World:
parser = WorldParser.WorldParser(self) parser = WorldParser.WorldParser(self)
parser.parseWorld('world.xml') parser.parseWorld('world.xml')
self.debug_Items()

View File

@@ -100,10 +100,9 @@ class WorldParser():
gegenstand.sichtbar = visible.lower() not in ['false','False','0'] gegenstand.sichtbar = visible.lower() not in ['false','False','0']
#logging.debug('Gegenstand ' + gegenstand.name + ' ist sichtbar: ' + str(gegenstand.sichtbar)) #logging.debug('Gegenstand ' + gegenstand.name + ' ist sichtbar: ' + str(gegenstand.sichtbar))
gegenstand.pickupmsg = msgid gegenstand.pickupmsg = msgid
logging.debug('Item ' + gegenstand.name + ' - Pickup: ' + gegenstand.pickupmsg) # logging.debug('Item ' + gegenstand.name + ' - Pickup: ' + gegenstand.pickupmsg)
raum.items[id] = gegenstand raum.items[id] = gegenstand
logging.debug(f'Hinzufügen Gegenstand vom Typ: {str(type(gegenstand))}')
self.world.gegenstaende[id] = gegenstand self.world.gegenstaende[id] = gegenstand
else: else:
if raum != '-1': if raum != '-1':

View File

@@ -90,7 +90,7 @@ def inputLoop(stdscr):
logging.debug(f'debugcommand: {debugcommand}') logging.debug(f'debugcommand: {debugcommand}')
if debugcommand[1] == 'items': if debugcommand[1] == 'items':
world.debug_Items() debug_Items()
else: else:
@@ -106,7 +106,7 @@ def debug_Items():
count = 0 count = 0
for item in world.gegenstaende: for item in world.gegenstaende:
logging.debug(f'count= {count}') logging.debug(f'count= {count}')
logging.debug('Itemtyp: ' + str(type(item))) logging.debug(f'Itemtyp: ' + {item})
# logging.debug(f'Item-IdId:{item.id} - Item-Name:{item.name}') # logging.debug(f'Item-IdId:{item.id} - Item-Name:{item.name}')
count = count +1 count = count +1