shorter / more informative debug messages
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 1 Oct 2013 12:31:18 +0000 (14:31 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 1 Oct 2013 12:31:18 +0000 (14:31 +0200)
manifold/static/js/manifold-query.js
manifold/static/js/manifold.js
portal/sliceview.py

index 4da77da..3116f84 100644 (file)
@@ -31,7 +31,7 @@ INSERT INTO object VALUES(field=value)
     
     this.__repr = function () {
        res  = "ManifoldQuery ";
-       res += " id=" + this.query_uuid;
+//     res += " id=" + this.query_uuid;
        res += " a=" + this.action;
        res += " o=" + this.object;
        res += " ts=" + this.timestamp;
index 726e68f..791e4cf 100644 (file)
@@ -364,8 +364,7 @@ var manifold = {
             // by default we publish using the same uuid of course
             if (publish_uuid==undefined) publish_uuid=query.query_uuid;
             if (manifold.asynchroneous_debug) {
-                messages.debug("sending POST on " + manifold.proxy_url + " to be published on " + publish_uuid);
-                messages.debug("... ctd... with actual query= " + query.__repr());
+                messages.debug("sending POST on " + manifold.proxy_url + query.__repr());
             }
 
             query.iter_subqueries(function (sq) {
index 175a40e..74101f2 100644 (file)
@@ -21,6 +21,8 @@ from plugins.active_filters          import ActiveFilters
 from plugins.quickfilter             import QuickFilter
 from plugins.messages                import Messages
 
+from myslice.config                  import Config
+
 tmp_default_slice='ple.upmc.myslicedemo'
 
 # temporary : turn off the users part to speed things up
@@ -33,8 +35,9 @@ class SliceView (LoginRequiredAutoLogoutView):
         page = Page(request)
         page.add_css_files ('css/slice-view.css')
         page.add_js_files  ( [ "js/common.functions.js" ] )
-        page.add_js_chunks ('$(function() { console.log("sliceview: jQuery version " + $.fn.jquery); });')
-        page.add_js_chunks ('$(function() { console.log("sliceview: users turned %s"); });'%("on" if do_query_users else "off"))
+        page.add_js_chunks ('$(function() { messages.debug("sliceview: jQuery version " + $.fn.jquery); });')
+        page.add_js_chunks ('$(function() { messages.debug("sliceview: users turned %s"); });'%("on" if do_query_users else "off"))
+        page.add_js_chunks ('$(function() { messages.debug("manifold URL %s"); });'%(Config.manifold_url()))
         page.expose_js_metadata()
     
         metadata = page.get_metadata()