Bug 1219482 - Replace PRLogModuleInfo with LazyLogModule in toolkit subdirectory. r=erahm

This commit is contained in:
sajitk
2016-01-28 10:37:00 -05:00
parent 942a08ea8b
commit b916ed88a5
10 changed files with 12 additions and 33 deletions

View File

@@ -28,7 +28,7 @@
using namespace mozilla;
// NSPR_LOG_MODULES=UrlClassifierPrefixSet:5
static const PRLogModuleInfo *gUrlClassifierPrefixSetLog = nullptr;
static LazyLogModule gUrlClassifierPrefixSetLog("UrlClassifierPrefixSet");
#define LOG(args) MOZ_LOG(gUrlClassifierPrefixSetLog, mozilla::LogLevel::Debug, args)
#define LOG_ENABLED() MOZ_LOG_TEST(gUrlClassifierPrefixSetLog, mozilla::LogLevel::Debug)
@@ -42,8 +42,6 @@ nsUrlClassifierPrefixSet::nsUrlClassifierPrefixSet()
, mMemoryInUse(0)
, mMemoryReportPath()
{
if (!gUrlClassifierPrefixSetLog)
gUrlClassifierPrefixSetLog = PR_NewLogModule("UrlClassifierPrefixSet");
}
NS_IMETHODIMP