Bug 920801 - Port chat/ changes from Instantbird to comm-central - 6 - Bio 1906 - Keep the 50 debug log messages just before a disconnection with an error, even after the account is reconnected, UI part, r=fqueze.
Bug 920801 - Port chat/ changes from Instantbird to comm-central - 6 - Bio 1906 - Keep the 50 debug log messages just before a disconnection with an error, even after the account is reconnected, UI part, r=fqueze.
--- a/mail/components/im/content/imAccounts.js
+++ b/mail/components/im/content/imAccounts.js
@@ -233,16 +233,18 @@ var gAccountManager = {
.getService(Ci.nsIScriptableDateFormat);
let time = new Date(m.timeStamp);
time = dateServ.FormatDateTime("", dateServ.dateFormatShort,
dateServ.timeFormatSeconds,
time.getFullYear(), time.getMonth() + 1,
time.getDate(), time.getHours(),
time.getMinutes(), time.getSeconds());
let level = dbgMsg.logLevel;
+ if (!level)
+ return "(" + m.errorMessage + ")";
if (level == dbgMsg.LEVEL_ERROR)
level = "ERROR";
else if (level == dbgMsg.LEVEL_WARNING)
level = "WARN.";
else if (level == dbgMsg.LEVEL_LOG)
level = "LOG ";
else
level = "DEBUG"