~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead.py

  • Committer: Michael Hudson
  • Date: 2008-06-25 06:18:13 UTC
  • mfrom: (174.1.8 streaming)
  • Revision ID: michael.hudson@canonical.com-20080625061813-3cr5iax8sdz0e67s
merge my streaming branch which:
 * most importantly, streams the pages as they render to the client, which 
   reduces memory usage on large pages and feels better for the user
 * makes the stuff in controller/ have a more wsgi-ish interface
 * restores the stripping of excess whitespace from the output

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    access_log.setLevel(logging.INFO)
51
51
    access_log.setFormatter(f)
52
52
 
53
 
    logging.getLogger('').setLevel(logging.DEBUG)
54
53
    logging.getLogger('').addHandler(debug_log)
55
 
    logging.getLogger('wsgi').addHandler(access_log)
 
54
    logging.getLogger('turbogears.access').addHandler(access_log)
 
55
    logging.getLogger('turbogears.controllers').setLevel(logging.INFO)
56
56
 
57
57
    if foreground:
58
58
        logging.getLogger('').addHandler(stdout_log)