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/inventorygui.py

    r736 r797  
    2424from parpg.gui.containergui_base import ContainerGUIBase 
    2525from parpg.objects.action import ACTIONS 
     26 
     27import logging 
     28 
     29logger = logging.getLogger('action') 
    2630 
    2731class EquipmentSlot(pychan.VBox): 
     
    333337                data_drag.dragging = False 
    334338        except Container.TooBig : 
    335             print("%s too big to fit into %s" % (data_drag.dragged_item, 
    336                                                  drop_widget.slot)) 
     339            logger.warning("%s too big to fit " 
     340                                 "into %s" % (data_drag.dragged_item, 
     341                                              drop_widget.slot)) 
    337342        except (Container.SlotBusy, Container.ItemSelf): 
    338343            pass 
Note: See TracChangeset for help on using the changeset viewer.