diff options
author | Janonymous <janonymous.codevulture@gmail.com> | 2017-01-13 02:39:33 +0000 |
---|---|---|
committer | Jaivish Kothari(janonymous) <jaivish.kothari@nectechnologies.in> | 2017-01-13 03:24:18 +0000 |
commit | f4d453ec30dacc6824ca6148a56ae91249979dce (patch) | |
tree | 3b28bbf6c7884d0e88381043cfd013caf3ba9103 /keystonemiddleware/audit | |
parent | 0c1dee4a9d2560ea90af468660a3732ef2d733a7 (diff) | |
download | keystonemiddleware-f4d453ec30dacc6824ca6148a56ae91249979dce.tar.gz |
use oslo.log instead of logging
The constants of log levels were added in the 1.8 version
of the oslo.log library.
So we can replace all usage of system logging module
with log module from oslo.log
Change-Id: I97a1d913b543dc9dbd4d228b04adbdf7ee320df5
Diffstat (limited to 'keystonemiddleware/audit')
-rw-r--r-- | keystonemiddleware/audit/__init__.py | 2 | ||||
-rw-r--r-- | keystonemiddleware/audit/_api.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/keystonemiddleware/audit/__init__.py b/keystonemiddleware/audit/__init__.py index 546a55c..ade5891 100644 --- a/keystonemiddleware/audit/__init__.py +++ b/keystonemiddleware/audit/__init__.py @@ -21,10 +21,10 @@ provides. import copy import functools -import logging from oslo_config import cfg from oslo_context import context as oslo_context +from oslo_log import log as logging from pycadf import cadftaxonomy as taxonomy from pycadf import cadftype from pycadf import reason diff --git a/keystonemiddleware/audit/_api.py b/keystonemiddleware/audit/_api.py index 0d3361f..4e453f7 100644 --- a/keystonemiddleware/audit/_api.py +++ b/keystonemiddleware/audit/_api.py @@ -11,9 +11,9 @@ # under the License. import collections -import logging import re +from oslo_log import log as logging from oslo_serialization import jsonutils from pycadf import cadftaxonomy as taxonomy from pycadf import cadftype |