Ignore:
Timestamp:
03/07/11 12:49:44 (9 years ago)
Author:
aspidites
Message:

Patch by Aspidites:

  • converted print statements to logging messages.
  • all of parpg's log messages go to the same file, but are differenciated by their class names
  • need to find a way to manipulate fife's log level
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/game/parpg/objects/action.py

    r774 r797  
    1515 
    1616#exceptions 
     17 
     18import logging 
     19 
     20logger = logging.getLogger('action') 
    1721 
    1822from parpg.gui import drag_drop_data as data_drag 
     
    201205        action_text = self.examine_desc 
    202206        self.view.hud.addAction(unicode(action_text)) 
    203         print action_text 
     207        logger.debug(action_text) 
    204208        #this code will cut the line up into smaller lines that will be displayed 
    205209        place = 25 
     
    235239        action_text = unicode(self.examine_desc) 
    236240        self.view.hud.addAction(action_text) 
    237         print action_text 
     241        logger.debug(action_text) 
    238242 
    239243class ReadAction(Action): 
     
    262266                                         self.text])) 
    263267        self.view.hud.addAction(action_text) 
    264         print action_text 
     268        logger.debug(action_text) 
    265269        super(ReadAction, self).execute() 
    266270 
Note: See TracChangeset for help on using the changeset viewer.