~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: Guillermo Gonzalez
  • Date: 2008-09-09 03:47:24 UTC
  • mto: (217.1.9 logging)
  • mto: This revision was merged to the branch mainline in revision 226.
  • Revision ID: guillo.gonzo@gmail.com-20080909034724-dm7wj8yf22y86fkh
 * new apps module: "error" and ErrorHandlerApp middleware
 * new error_ui controller 
 * added trivial template: error.pt
 * serve-branches:
  - added --log-folder option
  - reorganized logging setup (as first step towards move it into trace.py)
 * exception handling in BranchWSGIApp.app 

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
from loggerhead import daemon
33
33
from loggerhead.apps.config import Root
34
34
from loggerhead.trace import make_handler, setup_logging
 
35
from loggerhead.apps.error import ErrorHandlerApp
35
36
 
36
37
def main():
37
38
    home = os.path.realpath(os.path.dirname(__file__))
96
97
 
97
98
    app = app
98
99
    app = make_middleware(app)
99
 
    app = make_filter(app, None)
 
100
    app = make_filter(app, None, logger_name=log.name+'.access')
 
101
    app = ErrorHandlerApp(app)
100
102
 
101
103
    if webpath:
102
104
        scheme, netloc, path, blah, blah, blah = urlparse.urlparse(webpath)