summaryrefslogtreecommitdiffstats
path: root/bin/nova-api-paste
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2011-01-07 20:09:54 +0000
committerTarmac <>2011-01-07 20:09:54 +0000
commit05ccbb75c45aa3c348162043495e1a3d279e5b06 (patch)
tree7ebd7318bdf4caa1058ea7088764534c2eaca8f0 /bin/nova-api-paste
parentcbd67da1ae2a24462767a5a2aad0861792652c09 (diff)
parent149ea349592a9fa60057e290e7659aad65b6cf65 (diff)
downloadnova-05ccbb75c45aa3c348162043495e1a3d279e5b06.tar.gz
nova-05ccbb75c45aa3c348162043495e1a3d279e5b06.tar.xz
nova-05ccbb75c45aa3c348162043495e1a3d279e5b06.zip
Wrap logs so we can:
* use a "context" kwarg to track requests all the way through the system * use a custom formatter so we get the data we want (configurable with flags) * allow additional formatting for debug statements for easer debugging * add an AUDIT level, useful for noticing changes to system components * use named logs instead of the general logger where it makes sesnse
Diffstat (limited to 'bin/nova-api-paste')
-rwxr-xr-xbin/nova-api-paste2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nova-api-paste b/bin/nova-api-paste
index 6ee833a18..419f0bbdc 100755
--- a/bin/nova-api-paste
+++ b/bin/nova-api-paste
@@ -21,7 +21,6 @@
"""Starter script for Nova API."""
import gettext
-import logging
import os
import sys
@@ -38,6 +37,7 @@ if os.path.exists(os.path.join(possible_topdir, 'nova', '__init__.py')):
gettext.install('nova', unicode=1)
from nova import flags
+from nova import log as logging
from nova import wsgi
LOG = logging.getLogger('nova.api')