[Pkg-mozext-commits] [perspectives-extension] 01/18: Perspectives, Pers_client_policy, Pers_about - Fix debug printing calls

David Prévot taffit at alioth.debian.org
Fri Oct 25 18:24:28 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch debian
in repository perspectives-extension.

commit c19405ec4f08d2646f0b19526f6a8d66169dac80
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Sun Sep 22 21:22:34 2013 -0600

    Perspectives, Pers_client_policy, Pers_about - Fix debug printing calls
---
 plugin/chrome/content/about.js         |    2 +-
 plugin/chrome/content/client_policy.js |    2 +-
 plugin/chrome/content/notaries.js      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugin/chrome/content/about.js b/plugin/chrome/content/about.js
index 85ce4b8..6f8fbc0 100644
--- a/plugin/chrome/content/about.js
+++ b/plugin/chrome/content/about.js
@@ -39,7 +39,7 @@ var Pers_about = {
 				AddonManager.getAddonByID(Perspectives.MY_ID, Pers_about.set_version_number);
 			}
 			catch (ex) {
-				Pers_debug.d_print("Error getting version number? Or old version of firefox. '" + ex + "'");
+				Pers_debug.d_print("error", "Error getting version number? Or old version of firefox. '" + ex + "'");
 				// Firefox 3.6 and before; Mozilla 1.9.2 and before
 				var em = Components.classes["@mozilla.org/extensions/manager;1"]
 						 .getService(Components.interfaces.nsIExtensionManager);
diff --git a/plugin/chrome/content/client_policy.js b/plugin/chrome/content/client_policy.js
index 72f31c6..23886d6 100644
--- a/plugin/chrome/content/client_policy.js
+++ b/plugin/chrome/content/client_policy.js
@@ -178,7 +178,7 @@ get_quorum_duration : function(test_key, results, quorum_size, stale_limit_secs,
 	var oldest_most_recent = Pers_client_policy.find_oldest_most_recent(results,stale_limit_secs,unixtime);
   	var time_changes = Pers_client_policy.get_all_key_changes(results); 
 	Pers_client_policy.sort_number_list_desc(time_changes); 
-	Pers_debug.d_print("policy", "sorted times: ", time_changes); 
+	Pers_debug.d_print("policy", "sorted times: " + time_changes);
   	var test_time = null; 
 	for(var i = 0; i < time_changes.length; i++) {
 		test_time = time_changes[i]; 
diff --git a/plugin/chrome/content/notaries.js b/plugin/chrome/content/notaries.js
index 04f136c..4863526 100644
--- a/plugin/chrome/content/notaries.js
+++ b/plugin/chrome/content/notaries.js
@@ -850,7 +850,7 @@ var Perspectives = {
      				Pers_debug.d_print("main", "State change " + uri.spec + "\n");
          			Perspectives.updateStatus(window,false);
        			  } catch (err) {
-         			Pers_debug.d_print("Perspectives had an internal exception: " + err);
+         			Pers_debug.d_print("error", "Perspectives had an internal exception: " + err);
          			Pers_statusbar.setStatus(Pers_statusbar.STATE_ERROR, 
 					"Perspectives: an internal state change error occurred: " + err); //TODO: localize
        			  }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git



More information about the Pkg-mozext-commits mailing list