demote error/warning criticalities which are not entirely surprising at this

stage of implementation; this avoids clogging up the error console.
This commit is contained in:
Andrew Sutherland 2008-07-17 21:58:47 -07:00
Родитель 76f31b6ed0
Коммит 73584fb0ca
3 изменённых файлов: 15 добавлений и 10 удалений

Просмотреть файл

@ -677,7 +677,6 @@ let GlodaDatastore = {
messageKey = :nullMsgKey \
WHERE folderID = :id \
AND messageKey IN (" + aMessageKeys.join(", ") + ")";
this._log.debug("SQL STRING: " + sqlStr);
let statement = this._createStatement(sqlStr);
statement.params.id = srcFolderID;
statement.params.newFolderID = destFolderID;
@ -734,8 +733,8 @@ let GlodaDatastore = {
this._selectMessageByLocationStatement.reset();
if (message === null)
this._log.error("Error locating message with key=" + aMessageKey +
" and URI " + aFolderURI);
this._log.info("Error locating message with key=" + aMessageKey +
" and URI " + aFolderURI);
return message;
},

Просмотреть файл

@ -81,7 +81,7 @@ let Gloda = {
aMsgHdr.messageKey);
if (message === null) {
message = GlodaDatastore.getMessageByMessageID(aMsgHdr.messageId);
this._log.warn("Fell back to locating message by id; actual message " +
this._log.info("Fell back to locating message by id; actual message " +
"key is: " + aMsgHdr.messageKey + " database key: " +
message.messageKey);
}
@ -103,15 +103,21 @@ let Gloda = {
parsed.addresses[iAddress]);
if (identity === null) {
let name = parsed.names[iAddress];
let mailAddr = parsed.addresses[iAddress];
// fall-back to the mail address if the name is empty
if ((name === null) || (name == ""))
name = mailAddr;
// we must create a contact
let contact = GlodaDatastore.createContact(null, null,
parsed.names[iAddress]);
let contact = GlodaDatastore.createContact(null, null, name);
// we must create the identity. use a blank description because there's
// nothing to differentiate it from other identities, as this contact
// only has one initially (us).
identity = GlodaDatastore.createIdentity(contact.id, contact, "email",
parsed.addresses[iAddress],
mailAddr,
"", false);
}
identities.push(identity);
@ -124,8 +130,8 @@ let Gloda = {
function gloda_ns_getIdentityForFullMailAddress(aMailAddress) {
let identities = this.getIdentitiesForFullMailAddresses(aMailAddress);
if (identities.length != 1) {
this._log.error("Expected exactly 1 address, got " + identities.length +
" for address: " + aMailAddress);
this._log.info("Expected exactly 1 address, got " + identities.length +
" for address: " + aMailAddress);
return null;
}

Просмотреть файл

@ -484,7 +484,7 @@ let GlodaIndexer = {
this._indexMessage(msgHdr);
}
else {
this._log.error("Move unable to locate message with header " +
this._log.info("Move unable to locate message with header " +
"message-id " + item[1] + ". Folder is known to possess " +
this._indexingFolder.getTotalMessages(false) +" messages.");
}