Bug 1051127 - Add an env var for CPOW logging (r=mrbkap)
This commit is contained in:
@@ -156,10 +156,16 @@ JavaScriptShared::JavaScriptShared(JSRuntime *rt)
|
|||||||
{
|
{
|
||||||
if (!sLoggingInitialized) {
|
if (!sLoggingInitialized) {
|
||||||
sLoggingInitialized = true;
|
sLoggingInitialized = true;
|
||||||
Preferences::AddBoolVarCache(&sLoggingEnabled,
|
|
||||||
"dom.ipc.cpows.log.enabled", false);
|
if (PR_GetEnv("MOZ_CPOW_LOG")) {
|
||||||
Preferences::AddBoolVarCache(&sStackLoggingEnabled,
|
sLoggingEnabled = true;
|
||||||
"dom.ipc.cpows.log.stack", false);
|
sStackLoggingEnabled = true;
|
||||||
|
} else {
|
||||||
|
Preferences::AddBoolVarCache(&sLoggingEnabled,
|
||||||
|
"dom.ipc.cpows.log.enabled", false);
|
||||||
|
Preferences::AddBoolVarCache(&sStackLoggingEnabled,
|
||||||
|
"dom.ipc.cpows.log.stack", false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user