Updated logging for CloudWatch plugin
[osm/MON.git] / osm_mon / plugins / CloudWatch / plugin_alarm.py
index 5888771..c8ca955 100644 (file)
@@ -28,7 +28,7 @@ __date__   = "18-September-2017"
 
 import sys
 import json
-import logging as log
+import logging
 from jsmin import jsmin
 from connection import Connection
 from metric_alarms import MetricAlarm
@@ -36,6 +36,8 @@ from metrics import Metrics
 sys.path.append("../../core/message_bus")
 from producer import KafkaProducer
 
+log = logging.getLogger(__name__)
+
 class plugin_alarms():
     """Receives Alarm info from MetricAlarm and connects with the consumer/producer"""
     def __init__ (self):