Bug 461029 Log POP errors to the PR_LOG module. r/sr=bienvenu
authorMark Banner <bugzilla@standard8.plus.com>
Tue, 21 Oct 2008 21:50:12 +0100
changeset 680 af9bdd73afd8f584c17bd7811101a2d95608f135
parent 679 c4ffaa7e2d73165a056d347a48be9d64b7a9ef2d
child 681 e3da6a34d2b6263dcc0f75291bfaf4890113a081
push id607
push userbugzilla@standard8.plus.com
push dateTue, 21 Oct 2008 20:52:42 +0000
treeherdercomm-central@af9bdd73afd8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs461029
Bug 461029 Log POP errors to the PR_LOG module. r/sr=bienvenu
mailnews/local/src/nsPop3Protocol.cpp
--- a/mailnews/local/src/nsPop3Protocol.cpp
+++ b/mailnews/local/src/nsPop3Protocol.cpp
@@ -1014,16 +1014,18 @@ nsPop3Protocol::WaitForResponse(nsIInput
 
   PR_Free(line);
   return(1);  /* everything ok */
 }
 
 PRInt32
 nsPop3Protocol::Error(PRInt32 err_code)
 {
+    PR_LOG(POP3LOGMODULE, PR_LOG_ALWAYS, ("ERROR: %d", err_code));
+
     // the error code is just the resource id for the error string...
     // so print out that error message!
     nsresult rv = NS_OK;
     nsCOMPtr<nsIMsgMailNewsUrl> mailnewsUrl = do_QueryInterface(m_url, &rv);
     // we handle POP3_TMP_DOWNLOAD_FAILED earlier...
     if (err_code != POP3_TMP_DOWNLOAD_FAILED && NS_SUCCEEDED(rv))
     {
         nsCOMPtr<nsIMsgWindow> msgWindow;