X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fentrypoints%2Fredis_eventconsumer.py;h=15312bff2184fab777d10aaee3e4f5adf8f5fe37;hb=19ee63847f8eb032009e63634b90eb594f3c0408;hp=a22b61cfb4faf982c11a7226c111b0a896857288;hpb=81e3575a77366f30c2049f98c48a3087db0ea992;p=pti%2Fo2.git diff --git a/o2ims/entrypoints/redis_eventconsumer.py b/o2ims/entrypoints/redis_eventconsumer.py index a22b61c..15312bf 100644 --- a/o2ims/entrypoints/redis_eventconsumer.py +++ b/o2ims/entrypoints/redis_eventconsumer.py @@ -12,14 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -import json -import logging +# import json import redis from o2ims import bootstrap, config -from o2ims.domain import commands +# from o2ims.domain import commands -logger = logging.getLogger(__name__) +from o2common.helper import o2logging +logger = o2logging.get_logger(__name__) r = redis.Redis(**config.get_redis_host_and_port()) @@ -36,9 +36,9 @@ def main(): def handle_dms_changed(m, bus): logger.info("handling %s", m) - data = json.loads(m["data"]) - cmd = commands.UpdateDms(ref=data["dmsid"]) - bus.handle(cmd) + # data = json.loads(m["data"]) + # cmd = commands.UpdateDms(ref=data["dmsid"]) + # bus.handle(cmd) if __name__ == "__main__":