Bug 1174785 - Part 2: Convert xpcom over to LogModule. r=froydnj

This commit is contained in:
Eric Rahm
2015-10-19 12:50:14 -07:00
parent 92936288bb
commit ef2af5437e
16 changed files with 35 additions and 119 deletions

View File

@@ -49,17 +49,8 @@
using namespace mozilla;
static PRLogModuleInfo*
GetNativeModuleLoaderLog()
{
static PRLogModuleInfo* sLog;
if (!sLog) {
sLog = PR_NewLogModule("nsNativeModuleLoader");
}
return sLog;
}
#define LOG(level, args) MOZ_LOG(GetNativeModuleLoaderLog(), level, args)
static LazyLogModule sNativeModuleLoaderLog("nsNativeModuleLoader");
#define LOG(level, args) MOZ_LOG(sNativeModuleLoaderLog, level, args)
nsresult
nsNativeModuleLoader::Init()
@@ -202,7 +193,7 @@ nsNativeModuleLoader::UnloadLibraries()
}
for (auto iter = mLibraries.Iter(); !iter.Done(); iter.Next()) {
if (MOZ_LOG_TEST(GetNativeModuleLoaderLog(), LogLevel::Debug)) {
if (MOZ_LOG_TEST(sNativeModuleLoaderLog, LogLevel::Debug)) {
nsIHashable* hashedFile = iter.Key();
nsCOMPtr<nsIFile> file(do_QueryInterface(hashedFile));