MS Model Input Validation
[policy/engine.git] / ONAP-PDP-REST / src / main / java / org / onap / policy / pdp / rest / notifications / NotificationServer.java
index 2f3d582..4c2d1ef 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP-PDP-REST
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -208,11 +208,15 @@ public class NotificationServer {
                
                for(Session session: queue) {
                        try {
+                               LOGGER.info("\n Sending Notification: " + notification + " for client session id: " + session.getId() + "\n "
+                                               + "PDPUrl is " + pdpURL);
+                       LOGGER.info("NotificationServer: sending text message");
                                session.getBasicRemote().sendText(notification);
                        } catch (IOException e) {
                                LOGGER.info(XACMLErrorConstants.ERROR_PROCESS_FLOW + "Error in sending the Event Notification: "+ e.getMessage() + e);
                        }
                }
+               
                NotificationService.sendNotification(notification);
        }