~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Martin Albisetti
  • Date: 2008-11-05 00:42:28 UTC
  • Revision ID: argentina@gmail.com-20081105004228-vcyhjanwejjkb9oy
Fix b0rked search (Robert Collins

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
                      help="Host Loggerhead should listen on.")
51
51
    parser.add_option("--prefix", dest="user_prefix",
52
52
                      help="Specify host prefix.")
53
 
    parser.add_option("--profile", action="store_true", dest="profile",
54
 
                      help="Generate callgrind profile data to "
55
 
                        "%d-stats.callgrind on each request.")
56
53
    parser.add_option("--reload", action="store_true", dest="reload",
57
54
                      help="Restarts the application when changing python"
58
55
                           " files. Only used for development purposes.")
119
116
    app = ErrorHandlerApp(app)
120
117
    app = HTTPExceptionHandler(app)
121
118
    app = TransLogger(app, logger=logger)
122
 
    if options.profile:
123
 
        from loggerhead.middleware.profile import LSProfMiddleware
124
 
        app = LSProfMiddleware(app)
125
119
 
126
120
    if not options.user_prefix:
127
121
        prefix = '/'