Author: cgeer
Date: Fri May 18 20:00:21 2012
New Revision: 1340227

URL: http://svn.apache.org/viewvc?rev=1340227&view=rev
Log:
RAVE-623 Fixed logging on OpenAjax events.

Modified:
    rave/trunk/rave-portal-resources/src/main/webapp/script/rave.js

Modified: rave/trunk/rave-portal-resources/src/main/webapp/script/rave.js
URL: 
http://svn.apache.org/viewvc/rave/trunk/rave-portal-resources/src/main/webapp/script/rave.js?rev=1340227&r1=1340226&r2=1340227&view=diff
==============================================================================
--- rave/trunk/rave-portal-resources/src/main/webapp/script/rave.js (original)
+++ rave/trunk/rave-portal-resources/src/main/webapp/script/rave.js Fri May 18 
20:00:21 2012
@@ -878,15 +878,15 @@ var rave = rave || (function () {
         }
         return new OpenAjax.hub.ManagedHub({
             onSubscribe:function (topic, container) {
-                log(container.getClientID() + " subscribes to this topic '" + 
topic + "'");
+                log((container == null ? "Container" : 
container.getClientID()) + " subscribes to this topic '" + topic + "'");
                 return true;
             },
             onUnsubscribe:function (topic, container) {
-                log(container.getClientID() + " unsubscribes from this topic 
'" + topic + "'");
+                log((container == null ? "Container" : 
container.getClientID()) + " unsubscribes from this topic '" + topic + "'");
                 return true;
             },
             onPublish:function (topic, data, pcont, scont) {
-                log(pcont.getClientID() + " publishes '" + data + "' to topic 
'" + topic + "' subscribed by " + scont.getClientID());
+                log((pcont == null ? "Container" : pcont.getClientID()) + " 
publishes '" + data + "' to topic '" + topic + "' subscribed by " + (scont == 
null ? "Container" : scont.getClientID()));
                 return true;
             }
         });


Reply via email to