Ignore:
Timestamp:
03/07/11 12:49:44 (8 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/serializers.py

    r774 r797  
    2828 
    2929from .common.utils import dedent_chomp 
     30 
     31import logging 
     32 
     33logger = logging.getLogger('serializers') 
    3034 
    3135class Serializable(object): 
     
    107111            object_ = class_(**init_args) 
    108112        except (TypeError, ValueError) as exception: 
    109             print(init_args) 
     113            logger.error(init_args) 
    110114            error_message = \ 
    111115                'unable to deserialize tag {0}: {1}'.format(element_name, 
Note: See TracChangeset for help on using the changeset viewer.