~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Paul Hummer
  • Date: 2009-03-31 21:47:14 UTC
  • mto: This revision was merged to the branch mainline in revision 318.
  • Revision ID: paul@canonical.com-20090331214714-mqkt0mgqaqbbx11z
Fixed an issue where I seemed to have poo for brains at the time, and created memory profile logs ALL the time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    logfile.setLevel(logging.DEBUG)
88
88
    logger.addHandler(logfile)
89
89
 
90
 
    memprofile = logging.getLogger('loggerhead-memprofile')
91
 
    memprofile.setLevel(logging.DEBUG)
92
 
    memprofile.addHandler(logging.FileHandler('loggerhead-memprofile'))
 
90
    if config.get_option('memory_profile'):
 
91
        memprofile = logging.getLogger('loggerhead-memprofile')
 
92
        memprofile.setLevel(logging.DEBUG)
 
93
        memprofile.addHandler(logging.FileHandler('loggerhead-memprofile'))
93
94
 
94
95
    # setup_logging() #end
95
96