Show More
@@ -7,6 +7,7 b'' | |||||
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
|
10 | pdebug = false | |||
10 | ################################################################################ |
|
11 | ################################################################################ | |
11 | ## Uncomment and replace with the address which should receive ## |
|
12 | ## Uncomment and replace with the address which should receive ## | |
12 | ## any error reports after application crash ## |
|
13 | ## any error reports after application crash ## |
@@ -7,6 +7,7 b'' | |||||
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
|
10 | pdebug = false | |||
10 | ################################################################################ |
|
11 | ################################################################################ | |
11 | ## Uncomment and replace with the address which should receive ## |
|
12 | ## Uncomment and replace with the address which should receive ## | |
12 | ## any error reports after application crash ## |
|
13 | ## any error reports after application crash ## |
@@ -7,6 +7,7 b'' | |||||
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
|
10 | pdebug = false | |||
10 | ################################################################################ |
|
11 | ################################################################################ | |
11 | ## Uncomment and replace with the address which should receive ## |
|
12 | ## Uncomment and replace with the address which should receive ## | |
12 | ## any error reports after application crash ## |
|
13 | ## any error reports after application crash ## |
@@ -47,6 +47,9 b' def make_app(global_conf, full_stack=Tru' | |||||
47 | app = SessionMiddleware(app, config) |
|
47 | app = SessionMiddleware(app, config) | |
48 |
|
48 | |||
49 | # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) |
|
49 | # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) | |
|
50 | if asbool(config['pdebug']): | |||
|
51 | from rhodecode.lib.profiler import ProfilingMiddleware | |||
|
52 | app = ProfilingMiddleware(app) | |||
50 |
|
53 | |||
51 | app = SimpleHg(app, config) |
|
54 | app = SimpleHg(app, config) | |
52 | app = SimpleGit(app, config) |
|
55 | app = SimpleGit(app, config) |
General Comments 0
You need to be logged in to leave comments.
Login now