From 628cca75d368aa1cf31a878c54fd3f4e2149d0d3 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Fri, 18 Feb 2005 18:36:33 +0000 Subject: [PATCH] Bug 282246 Improve log output in helper app service r+sr=bz --- uriloader/exthandler/nsExternalHelperAppService.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uriloader/exthandler/nsExternalHelperAppService.cpp b/uriloader/exthandler/nsExternalHelperAppService.cpp index 5ba268c97f4d..a65f8826c2af 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.cpp +++ b/uriloader/exthandler/nsExternalHelperAppService.cpp @@ -1830,7 +1830,11 @@ void nsExternalAppHandler::SendStatusChange(ErrorType type, nsresult rv, nsIRequ break; } PR_LOG(nsExternalHelperAppService::mLog, PR_LOG_ERROR, - ("Error: %s, listener=0x%p, rv=0x%08X\n", NS_LossyConvertUCS2toASCII(msgId).get(), mWebProgressListener.get(), rv)); + ("Error: %s, type=%i, listener=0x%p, rv=0x%08X\n", + NS_LossyConvertUTF16toASCII(msgId).get(), type, mWebProgressListener.get(), rv)); + PR_LOG(nsExternalHelperAppService::mLog, PR_LOG_ERROR, + (" path='%s'\n", NS_ConvertUTF16toUTF8(path).get())); + // Get properties file bundle and extract status string. nsCOMPtr s = do_GetService(NS_STRINGBUNDLE_CONTRACTID); if (s)