Use trace logging for reporting GUIDs.

This commit is contained in:
Edward Lee 2009-09-17 14:41:24 -07:00
parent b48bdeef35
commit 0611761d74
4 changed files with 12 additions and 14 deletions

View File

@ -132,12 +132,12 @@ FormStore.prototype = {
},
cacheFormItems: function FormStore_cacheFormItems() {
this._log.debug("Caching all form items");
this._log.trace("Caching all form items");
this._formItems = this.getAllIDs();
},
clearFormCache: function FormStore_clearFormCache() {
this._log.debug("Clearing form cache");
this._log.trace("Clearing form cache");
this._formItems = null;
},

View File

@ -111,7 +111,7 @@ PasswordStore.prototype = {
let logins = Svc.Login.searchLogins({}, prop);
if (logins.length > 0) {
this._log.debug(logins.length + " items matching " + id + " found.");
this._log.trace(logins.length + " items matching " + id + " found.");
return logins[0];
} else {
this._log.trace("No items matching " + id + " found. Ignoring");
@ -132,7 +132,7 @@ PasswordStore.prototype = {
},
changeItemID: function PasswordStore__changeItemID(oldID, newID) {
this._log.debug("Changing item ID: " + oldID + " to " + newID);
this._log.trace("Changing item ID: " + oldID + " to " + newID);
let oldLogin = this._getLoginFromGUID(oldID);
if (!oldLogin) {
@ -197,11 +197,11 @@ PasswordStore.prototype = {
update: function PasswordStore__update(record) {
let loginItem = this._getLoginFromGUID(record.id);
if (!loginItem) {
this._log.debug("Skipping update for unknown item: " + record.id);
this._log.debug("Skipping update for unknown item: " + record.hostname);
return;
}
this._log.debug("Updating " + record.id);
this._log.debug("Updating " + record.hostname);
let newinfo = this._nsLoginInfoFromRecord(record);
Svc.Login.modifyLogin(loginItem, newinfo);
},
@ -238,11 +238,11 @@ PasswordTracker.prototype = {
case 'removeLogin':
aSubject.QueryInterface(Ci.nsILoginMetaInfo);
this._score += 15;
this._log.debug(aData + ": " + aSubject.guid);
this._log.trace(aData + ": " + aSubject.guid);
this.addChangedID(aSubject.guid);
break;
case 'removeAllLogins':
this._log.debug(aData);
this._log.trace(aData);
this._score += 50;
break;
}

View File

@ -183,7 +183,7 @@ PrefStore.prototype = {
},
update: function PrefStore_update(record) {
this._log.debug("Received pref updates, applying...");
this._log.trace("Received pref updates, applying...");
this._setAllPrefs(record.value);
},
@ -232,7 +232,7 @@ PrefTracker.prototype = {
if (this._syncPrefs.indexOf(aData) != -1) {
this._score += 25;
this.addChangedID(WEAVE_PREFS_GUID);
this._log.debug("Preference " + aData + " changed");
this._log.trace("Preference " + aData + " changed");
}
}
};

View File

@ -302,7 +302,6 @@ TabStore.prototype = {
},
wipe: function TabStore_wipe() {
this._log.debug("Wipe called. Clearing cache of remote client tabs.");
this._remoteClients = {};
},
@ -320,8 +319,7 @@ TabStore.prototype = {
update: function TabStore_update(record) {
if (record.id == this._localClientGUID)
return; // can't happen?
this._log.debug("Update called. Updating remote client record for");
this._log.debug(record.getClientName());
this._log.debug("Updating remote client: " + record.getClientName());
this._remoteClients[record.id] = record;
this._writeToFile();
},
@ -329,7 +327,7 @@ TabStore.prototype = {
remove: function TabStore_remove(record) {
if (record.id == this._localClientGUID)
return; // can't happen?
this._log.debug("Remove called. Deleting record with id " + record.id);
this._log.trace("Remove called. Deleting record with id " + record.id);
delete this._remoteClients[record.id];
this._writeToFile();
}