Bug 1275744 - Reference MOZ_LOG in uriloader comments. r=erahm
NSPR_LOG_MODULES is deprecated.
MozReview-Commit-ID: HjVIwcxH4My
--- a/uriloader/base/nsDocLoader.cpp
+++ b/uriloader/base/nsDocLoader.cpp
@@ -37,23 +37,23 @@
using mozilla::LogLevel;
static NS_DEFINE_CID(kThisImplCID, NS_THIS_DOCLOADER_IMPL_CID);
//
// Log module for nsIDocumentLoader logging...
//
-// To enable logging (see prlog.h for full details):
+// To enable logging (see mozilla/Logging.h for full details):
//
-// set NSPR_LOG_MODULES=DocLoader:5
-// set NSPR_LOG_FILE=nspr.log
+// set MOZ_LOG=DocLoader:5
+// set MOZ_LOG_FILE=debug.log
//
// this enables LogLevel::Debug level information and places all output in
-// the file nspr.log
+// the file 'debug.log'.
//
mozilla::LazyLogModule gDocLoaderLog("DocLoader");
#if defined(DEBUG)
void GetURIStringFromRequest(nsIRequest* request, nsACString &name)
{
if (request)
--- a/uriloader/exthandler/nsExternalHelperAppService.h
+++ b/uriloader/exthandler/nsExternalHelperAppService.h
@@ -137,19 +137,19 @@ protected:
* @param aExtension The extension to search for
* @param aMIMEType [out] The found MIME type.
* @return true if the extension was found, false otherwise.
*/
bool GetTypeFromExtras(const nsACString& aExtension,
nsACString& aMIMEType);
/**
- * NSPR Logging Module. Usage: set NSPR_LOG_MODULES=HelperAppService:level,
- * where level should be 2 for errors, 3 for debug messages from the cross-
- * platform nsExternalHelperAppService, and 4 for os-specific debug messages.
+ * Logging Module. Usage: set MOZ_LOG=HelperAppService:level, where level
+ * should be 2 for errors, 3 for debug messages from the cross- platform
+ * nsExternalHelperAppService, and 4 for os-specific debug messages.
*/
static mozilla::LazyLogModule mLog;
// friend, so that it can access the nspr log module.
friend class nsExternalAppHandler;
/**
* Helper function for ExpungeTemporaryFiles and ExpungeTemporaryPrivateFiles
--- a/uriloader/prefetch/OfflineCacheUpdateChild.cpp
+++ b/uriloader/prefetch/OfflineCacheUpdateChild.cpp
@@ -33,20 +33,20 @@
#include "nsIAsyncVerifyRedirectCallback.h"
using namespace mozilla::ipc;
using namespace mozilla::net;
using mozilla::dom::TabChild;
using mozilla::dom::ContentChild;
//
-// To enable logging (see prlog.h for full details):
+// To enable logging (see mozilla/Logging.h for full details):
//
-// set NSPR_LOG_MODULES=nsOfflineCacheUpdate:5
-// set NSPR_LOG_FILE=offlineupdate.log
+// set MOZ_LOG=nsOfflineCacheUpdate:5
+// set MOZ_LOG_FILE=offlineupdate.log
//
// this enables LogLevel::Debug level information and places all output in
// the file offlineupdate.log
//
extern mozilla::LazyLogModule gOfflineCacheUpdateLog;
#undef LOG
#define LOG(args) MOZ_LOG(gOfflineCacheUpdateLog, mozilla::LogLevel::Debug, args)
--- a/uriloader/prefetch/OfflineCacheUpdateGlue.cpp
+++ b/uriloader/prefetch/OfflineCacheUpdateGlue.cpp
@@ -12,18 +12,18 @@
#include "nsIApplicationCacheContainer.h"
#include "nsIChannel.h"
#include "nsIDocument.h"
#include "mozilla/Logging.h"
//
// To enable logging (see mozilla/Logging.h for full details):
//
-// set NSPR_LOG_MODULES=nsOfflineCacheUpdate:5
-// set NSPR_LOG_FILE=offlineupdate.log
+// set MOZ_LOG=nsOfflineCacheUpdate:5
+// set MOZ_LOG_FILE=offlineupdate.log
//
// this enables LogLevel::Info level information and places all output in
// the file offlineupdate.log
//
extern mozilla::LazyLogModule gOfflineCacheUpdateLog;
#undef LOG
#define LOG(args) MOZ_LOG(gOfflineCacheUpdateLog, mozilla::LogLevel::Debug, args)
--- a/uriloader/prefetch/OfflineCacheUpdateParent.cpp
+++ b/uriloader/prefetch/OfflineCacheUpdateParent.cpp
@@ -18,20 +18,20 @@
using namespace mozilla::ipc;
using mozilla::BasePrincipal;
using mozilla::DocShellOriginAttributes;
using mozilla::PrincipalOriginAttributes;
using mozilla::dom::TabParent;
//
-// To enable logging (see prlog.h for full details):
+// To enable logging (see mozilla/Logging.h for full details):
//
-// set NSPR_LOG_MODULES=nsOfflineCacheUpdate:5
-// set NSPR_LOG_FILE=offlineupdate.log
+// set MOZ_LOG=nsOfflineCacheUpdate:5
+// set MOZ_LOG_FILE=offlineupdate.log
//
// this enables LogLevel::Debug level information and places all output in
// the file offlineupdate.log
//
extern mozilla::LazyLogModule gOfflineCacheUpdateLog;
#undef LOG
#define LOG(args) MOZ_LOG(gOfflineCacheUpdateLog, mozilla::LogLevel::Debug, args)
--- a/uriloader/prefetch/nsOfflineCacheUpdate.cpp
+++ b/uriloader/prefetch/nsOfflineCacheUpdate.cpp
@@ -48,20 +48,20 @@ static const uint32_t kRescheduleLimit =
static const uint32_t kPinnedEntryRetriesLimit = 3;
// Maximum number of parallel items loads
static const uint32_t kParallelLoadLimit = 15;
// Quota for offline apps when preloading
static const int32_t kCustomProfileQuota = 512000;
//
-// To enable logging (see prlog.h for full details):
+// To enable logging (see mozilla/Logging.h for full details):
//
-// set NSPR_LOG_MODULES=nsOfflineCacheUpdate:5
-// set NSPR_LOG_FILE=offlineupdate.log
+// set MOZ_LOG=nsOfflineCacheUpdate:5
+// set MOZ_LOG_FILE=offlineupdate.log
//
// this enables LogLevel::Debug level information and places all output in
// the file offlineupdate.log
//
extern LazyLogModule gOfflineCacheUpdateLog;
#undef LOG
#define LOG(args) MOZ_LOG(gOfflineCacheUpdateLog, mozilla::LogLevel::Debug, args)
--- a/uriloader/prefetch/nsOfflineCacheUpdateService.cpp
+++ b/uriloader/prefetch/nsOfflineCacheUpdateService.cpp
@@ -65,20 +65,20 @@ nsTHashtable<nsCStringHashKey>* nsOfflin
}
typedef mozilla::docshell::OfflineCacheUpdateParent OfflineCacheUpdateParent;
typedef mozilla::docshell::OfflineCacheUpdateChild OfflineCacheUpdateChild;
typedef mozilla::docshell::OfflineCacheUpdateGlue OfflineCacheUpdateGlue;
//
-// To enable logging (see prlog.h for full details):
+// To enable logging (see mozilla/Logging.h for full details):
//
-// set NSPR_LOG_MODULES=nsOfflineCacheUpdate:5
-// set NSPR_LOG_FILE=offlineupdate.log
+// set MOZ_LOG=nsOfflineCacheUpdate:5
+// set MOZ_LOG_FILE=offlineupdate.log
//
// this enables LogLevel::Debug level information and places all output in
// the file offlineupdate.log
//
LazyLogModule gOfflineCacheUpdateLog("nsOfflineCacheUpdate");
#undef LOG
#define LOG(args) MOZ_LOG(gOfflineCacheUpdateLog, mozilla::LogLevel::Debug, args)
--- a/uriloader/prefetch/nsPrefetchService.cpp
+++ b/uriloader/prefetch/nsPrefetchService.cpp
@@ -33,21 +33,21 @@
#include "nsIDocument.h"
#include "nsContentUtils.h"
using namespace mozilla;
//
// To enable logging (see mozilla/Logging.h for full details):
//
-// set NSPR_LOG_MODULES=nsPrefetch:5
-// set NSPR_LOG_FILE=prefetch.log
+// set MOZ_LOG=nsPrefetch:5
+// set MOZ_LOG_FILE=prefetch.log
//
// this enables LogLevel::Debug level information and places all output in
-// the file http.log
+// the file prefetch.log
//
static LazyLogModule gPrefetchLog("nsPrefetch");
#undef LOG
#define LOG(args) MOZ_LOG(gPrefetchLog, mozilla::LogLevel::Debug, args)
#undef LOG_ENABLED
#define LOG_ENABLED() MOZ_LOG_TEST(gPrefetchLog, mozilla::LogLevel::Debug)