SEBA-405 Update openstack synchronizer to use synchronizer library
Change-Id: I9adae42fa7eec94ee496b728c32a7ce5db3c39e0
diff --git a/xos/synchronizer/error_mapper.py b/xos/synchronizer/error_mapper.py
index 94b8061..ad2da32 100644
--- a/xos/synchronizer/error_mapper.py
+++ b/xos/synchronizer/error_mapper.py
@@ -14,7 +14,10 @@
# limitations under the License.
-from xos.logger import Logger, logging, logger
+from xosconfig import Config
+from multistructlog import create_logger
+
+log = create_logger(Config().get('logging'))
class ErrorMapper:
@@ -28,7 +31,7 @@
k, v = map(lambda i: i.rstrip(), splits)
self.error_map[k] = v
except:
- logging.info('Could not read error map')
+ log.info('Could not read error map')
def map(self, error):
return self.error_map[error]