tone down tab engine debugging output a bit
authorDan Mills <thunder@mozilla.com>
Thu, 26 Jun 2008 14:34:32 -0700
changeset 44768 ee512ea9ae42b9bea71ca914d387babcae121dee
parent 44767 2b47bd8ece23bbf7c87a50d0d191385ae36df17c
child 44769 baa7af2c0393ba5ead075bbd96fb5689a6646f1b
push idunknown
push userunknown
push dateunknown
tone down tab engine debugging output a bit
services/sync/modules/engines/tabs.js
--- a/services/sync/modules/engines/tabs.js
+++ b/services/sync/modules/engines/tabs.js
@@ -72,21 +72,21 @@ TabSyncCore.prototype = {
     // window-specific tabs look the same when identified by URL.
 
     // Get the set of all real and virtual tabs.
     let tabs = this._engine.store.wrap();
 
     // XXX Should we convert both to nsIURIs and then use nsIURI::equals
     // to compare them?
     if (GUID in tabs) {
-      this._log.debug("_itemExists: " + GUID + " exists");
+      this._log.trace("_itemExists: " + GUID + " exists");
       return true;
     }
 
-    this._log.debug("_itemExists: " + GUID + " doesn't exist");
+    this._log.trace("_itemExists: " + GUID + " doesn't exist");
     return false;
   },
 
   _commandLike: function TSC_commandLike(a, b) {
     // Not implemented.
     return false;
   }
 };
@@ -328,32 +328,32 @@ TabStore.prototype = {
     let session = this._json.decode(this._sessionStore.getBrowserState());
 
     for (let i = 0; i < session.windows.length; i++) {
       let window = session.windows[i];
       // For some reason, session store uses one-based array index references,
       // (f.e. in the "selectedWindow" and each tab's "index" properties), so we
       // convert them to and from JavaScript's zero-based indexes as needed.
       let windowID = i + 1;
-      this._log.debug("_wrapRealTabs: window " + windowID);
+      this._log.trace("_wrapRealTabs: window " + windowID);
       for (let j = 0; j < window.tabs.length; j++) {
         let tab = window.tabs[j];
 
 	// The session history entry for the page currently loaded in the tab.
 	// We use the URL of the current page as the ID for the tab.
 	let currentEntry = tab.entries[tab.index - 1];
 
 	if (!currentEntry || !currentEntry.url) {
 	  this._log.warn("_wrapRealTabs: no current entry or no URL, can't " +
                          "identify " + this._json.encode(tab));
 	  continue;
 	}
 
 	let tabID = currentEntry.url;
-        this._log.debug("_wrapRealTabs: tab " + tabID);
+        this._log.trace("_wrapRealTabs: tab " + tabID);
 
         // The ID property of each entry in the tab, which I think contains
         // nsISHEntry::ID, changes every time session store restores the tab,
         // so we can't sync them, or we would generate edit commands on every
         // restart (even though nothing has actually changed).
         for each (let entry in tab.entries)
           delete entry.ID;