~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Paul Hummer
  • Date: 2009-03-30 22:05:16 UTC
  • mto: This revision was merged to the branch mainline in revision 315.
  • Revision ID: paul@eventuallyanyway.com-20090330220516-juae88haz06g6x4u
Fixed logging for memory profiling

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
    logfile.setFormatter(formatter)
122
122
    logfile.setLevel(logging.DEBUG)
123
123
    logger.addHandler(logfile)
 
124
 
 
125
    memprofile = logging.getLogger('loggerhead-memprofile')
 
126
    memprofile.setLevel(logging.DEBUG)
 
127
    memprofile.addHandler(logging.FileHandler('loggerhead-memprofile'))
 
128
 
124
129
    # setup_logging() #end
125
130
    app = TransLogger(app, logger=logger)
126
131
    if options.profile: