Switch to oslo_log

Designate dashboard is currently using python logging module to
implement logging functionality.
This patch made a switch to oslo.log(logging for openstack projects)

Reference:-
http://docs.openstack.org/developer/oslo.log

Change-Id: I31b8398e45743a9f797882988d62d779edb89f86
Closes-Bug: #1656167
This commit is contained in:
avnish 2017-01-17 14:55:38 +05:30
parent 875f6583d8
commit 9fdd096bda
5 changed files with 5 additions and 5 deletions

View File

@ -20,9 +20,9 @@ from designateclient.v1.records import Record # noqa
from django.conf import settings # noqa
from horizon import exceptions
import logging
from openstack_dashboard.api.base import url_for # noqa
from oslo_log import log as logging
LOG = logging.getLogger(__name__)

View File

@ -16,7 +16,6 @@
from django.conf import settings
from django.views import generic
import functools
import logging
import requests
from requests.exceptions import HTTPError
@ -24,6 +23,7 @@ from horizon import exceptions
from openstack_dashboard.api import base
from openstack_dashboard.api.rest import urls
from openstack_dashboard.api.rest import utils as rest_utils
from oslo_log import log as logging
LOG = logging.getLogger(__name__)

View File

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import functools
import logging
import re
from designateclient import exceptions as designate_exceptions
@ -27,6 +26,7 @@ from horizon import messages
from designatedashboard import api
from designatedashboard.dashboards.project.dns_domains.utils\
import limit_records_to_fips
from oslo_log import log as logging
LOG = logging.getLogger(__name__)

View File

@ -11,8 +11,6 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import logging
from django.core import urlresolvers
from django.utils.translation import ugettext_lazy as _ # noqa
@ -23,6 +21,7 @@ from horizon.utils import memoized
from designatedashboard import api
from openstack_dashboard import policy
from oslo_log import log as logging
LOG = logging.getLogger(__name__)

View File

@ -1,6 +1,7 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
oslo.log>=3.11.0 # Apache-2.0
pbr>=1.8 # Apache-2.0
Babel>=2.3.4 # BSD
python-designateclient>=1.5.0 # Apache-2.0