diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-06-25 13:37:27 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-07-12 09:32:33 -0400 |
commit | ccaf537aa6323c5161d3420b653025771db75010 (patch) | |
tree | 2e1e2dc830369d9619244e2ce11b039537578c1c /lite-server.py | |
parent | 7f9485f5bfc62f3a9d082d03b8118619bc283a94 (diff) | |
download | freeipa-ccaf537aa6323c5161d3420b653025771db75010.tar.gz freeipa-ccaf537aa6323c5161d3420b653025771db75010.tar.xz freeipa-ccaf537aa6323c5161d3420b653025771db75010.zip |
Handle errors raised by plugins more gracefully in mod_wsgi.
This started as an effort to display a more useful error message in the
Apache error log if retrieving the schema failed. I broadened the scope
a little to include limiting the output in the Apache error log
so errors are easier to find.
This adds a new configuration option, startup_traceback. Outside of
lite-server.py it is False by default so does not display the traceback
that lead to the StandardError being raised. This makes the mod_wsgi
error much easier to follow.
Diffstat (limited to 'lite-server.py')
-rwxr-xr-x | lite-server.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lite-server.py b/lite-server.py index ba7cfe3d..22ff720f 100755 --- a/lite-server.py +++ b/lite-server.py @@ -72,6 +72,7 @@ if __name__ == '__main__': ) api.env.in_server = True + api.env.startup_traceback = True (options, args) = api.bootstrap_with_global_options(parser, context='lite') api.env._merge( lite_port=options.port, |