diff options
| author | Todd Willey <todd@ansolabs.com> | 2011-01-07 20:09:54 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-01-07 20:09:54 +0000 |
| commit | 05ccbb75c45aa3c348162043495e1a3d279e5b06 (patch) | |
| tree | 7ebd7318bdf4caa1058ea7088764534c2eaca8f0 /bin/nova-api-paste | |
| parent | cbd67da1ae2a24462767a5a2aad0861792652c09 (diff) | |
| parent | 149ea349592a9fa60057e290e7659aad65b6cf65 (diff) | |
| download | nova-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-x | bin/nova-api-paste | 2 |
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') |
