summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui/ipa_webgui
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-server/ipa-gui/ipa_webgui')
-rw-r--r--ipa-server/ipa-gui/ipa_webgui7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipa-server/ipa-gui/ipa_webgui b/ipa-server/ipa-gui/ipa_webgui
index 61eaf60c..5df57895 100644
--- a/ipa-server/ipa-gui/ipa_webgui
+++ b/ipa-server/ipa-gui/ipa_webgui
@@ -140,11 +140,13 @@ def main():
if devel:
logging.basicConfig(level=loglevel,
+ format='%(asctime)s %(name)s %(levelname)s %(message)s',
stream=sys.stderr)
else:
# This log file name needs to be kept in sync with the one in
# ipa_webgui.cfg
logging.basicConfig(level=loglevel,
+ format='%(asctime)s %(name)s %(levelname)s %(message)s',
filename='/var/log/ipa_error.log')
sys.path.append("/usr/share/ipa")
@@ -159,6 +161,11 @@ def main():
import cherrypy
cherrypy.lowercase_api = True
+ # Shut down the logging set up here so that CherryPy logging can take
+ # over. TurboGears configuration errors will not be caught.
+ if not devel:
+ logging.shutdown()
+
# Load the config - look for a local file first for development
# and then the system config file
if devel: