HTRACE-193. gui: avoid doing multiple redraws when spanResults is updated, trim logs (cmccabe)
diff --git a/htrace-webapp/src/main/web/app/search_results_view.js b/htrace-webapp/src/main/web/app/search_results_view.js
index 111f530..9275d89 100644
--- a/htrace-webapp/src/main/web/app/search_results_view.js
+++ b/htrace-webapp/src/main/web/app/search_results_view.js
@@ -30,11 +30,14 @@
   initialize: function(options) {
     this.searchResults = options.searchResults;
     this.el = options.el;
-    this.listenTo(this.searchResults, 'add remove change reset', this.render);
+    var view = this;
+    this.listenTo(this.searchResults, 'add remove change reset',
+      _.debounce(function()  {
+      view.render();
+    }, 10));
 
     // Re-render the canvas when the window size changes.
     // Add a debouncer delay to avoid spamming render requests.
-    var view = this;
     $(window).on("resize", _.debounce(function()  {
       view.render();
     }, 250));
diff --git a/htrace-webapp/src/main/web/app/span_group_widget.js b/htrace-webapp/src/main/web/app/span_group_widget.js
index e32c2db..ad0b482 100644
--- a/htrace-webapp/src/main/web/app/span_group_widget.js
+++ b/htrace-webapp/src/main/web/app/span_group_widget.js
@@ -80,7 +80,6 @@
   var parentTreeHeight =
       htrace.treeHeight(this.span, htrace.getReifiedParents);
 
-  console.log("parentTreeHeight = " + parentTreeHeight);
   // Traverse the parents tree upwards.
   var thisWidget = this;
   htrace.treeTraverseDepthFirstPost(this.span, htrace.getReifiedParents, 0,
@@ -100,11 +99,5 @@
         }
       });
   this.yF = this.spanY + 4;
-  console.log("SpanGroupWidget(this.span=" +
-      JSON.stringify(this.span.unparse()) +
-      ", x0=" + this.x0 + ", xB=" + this.xB +
-      ", xD=" + this.xD + ", xF=" + this.xF +
-      ", y0=" + this.y0 + ", yF=" + this.yF +
-      ")");
   return this;
 };