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/gui/filebrowser.py

    r774 r797  
    1616 
    1717import sys 
     18import logging 
     19 
     20logger = logging.getLogger('filebrowser') 
    1821 
    1922def u2s(string): 
     
    9396                except: 
    9497                    new_list.append(unicode(i, fs_encoding, 'replace')) 
    95                     print "WARNING: Could not decode item:", i 
     98                    logger.debug("WARNING: Could not decode item:\n" 
     99                                        "{0}".format(i)) 
    96100            return new_list 
    97101             
     
    139143            return 
    140144 
    141         print 'FileBrowser: error, no selection.' 
     145        logger.error('no selection') 
    142146 
    143147    def _warningMessage(self): 
Note: See TracChangeset for help on using the changeset viewer.