diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-09-25 10:36:40 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-09-29 17:09:02 +0200 |
commit | fb5bf6857dce597ce7b94a8e1ea49cc5e3539b8c (patch) | |
tree | c18b03dd0b57b17a0eaf07dbee0d560ba4196b77 /install/share | |
parent | 786cb2e8523e9fdc55bc343c027f8eed2ca09a41 (diff) | |
download | freeipa-keytab-4419.tar.gz freeipa-keytab-4419.tar.xz freeipa-keytab-4419.zip |
debug changeskeytab-4419
Diffstat (limited to 'install/share')
-rw-r--r-- | install/share/wsgi.py | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/install/share/wsgi.py b/install/share/wsgi.py index 9f7d3f487..5205e8d6d 100644 --- a/install/share/wsgi.py +++ b/install/share/wsgi.py @@ -36,16 +36,13 @@ env._finalize_core(**dict(DEFAULT_CONFIG)) # Initialize the API with the proper debug level api.bootstrap(context='server', debug=env.debug, log=None) -try: - api.finalize() -except StandardError, e: - api.log.error('Failed to start IPA: %s' % e) -else: - api.log.info('*** PROCESS START ***') - # This is the WSGI callable: - def application(environ, start_response): - if not environ['wsgi.multithread']: - return api.Backend.wsgi_dispatch(environ, start_response) - else: - api.log.error("IPA does not work with the threaded MPM, use the pre-fork MPM") +api.finalize() + + +# This is the WSGI callable: +def application(environ, start_response): + if not environ['wsgi.multithread']: + return api.Backend.wsgi_dispatch(environ, start_response) + else: + api.log.error("IPA does not work with the threaded MPM, use the pre-fork MPM") |