[Pkg-mozext-commits] [requestpolicy] 231/280: introduce LOG_ENVIRONMENT
David Prévot
taffit at moszumanska.debian.org
Sat May 2 20:30:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit f67e29bd0a29903d2eae819d5e1c9d0e8e8cbbb7
Author: Martin Kimmerle <dev at 256k.de>
Date: Thu Mar 19 00:16:44 2015 +0100
introduce LOG_ENVIRONMENT
---
src/content/lib/environment.jsm | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/content/lib/environment.jsm b/src/content/lib/environment.jsm
index cbe6396..963e8f2 100644
--- a/src/content/lib/environment.jsm
+++ b/src/content/lib/environment.jsm
@@ -97,10 +97,6 @@ let BOOTSTRAP = {
"beforeProcessing": function() {
// "this" will be an environment
let self = this;
- //console.log("[RPC] starting up Environment " + getEnvInfo(self) + "." +
- // (self.outerEnv ?
- // " OuterEnv is " + getEnvInfo(self.outerEnv) + "." :
- // " No OuterEnv."));
self.register();
},
"afterProcessing": function() {}
@@ -418,6 +414,7 @@ Environment.prototype.addShutdownFunction = function(aLevel, f) {
return "'" + env.name + "' (" + env.uid + ")";
}
+ // #ifdef LOG_ENVIRONMENT
/**
* Log some debug information on startup or shutdown.
*
@@ -431,6 +428,7 @@ Environment.prototype.addShutdownFunction = function(aLevel, f) {
" OuterEnv is " + getEnvInfo(self.outerEnv) + "." :
" No OuterEnv."));
}
+ // #endif
/**
* Actual body of the functions startup() and shutdown().
@@ -453,7 +451,9 @@ Environment.prototype.addShutdownFunction = function(aLevel, f) {
} = getBootstrapMetadata(aStartupOrShutdown);
if (self.envState === envStates["beforeProcessing"]) {
- //logStartupOrShutdown.call(self, aStartupOrShutdown);
+ // #ifdef LOG_ENVIRONMENT
+ logStartupOrShutdown.call(self, aStartupOrShutdown);
+ // #endif
functions["beforeProcessing"].call(self);
self.envState = envStates["duringProcessing"];
@@ -491,8 +491,10 @@ Environment.prototype.addShutdownFunction = function(aLevel, f) {
Environment.prototype.shutdownOnUnload = function(aEventTarget) {
let self = this;
self.elManager.addListener(aEventTarget, "unload", function() {
- //console.log("[RPC] an EventTarget's `unload` function has been called. " +
- // 'Going to shut down Environment "'+self.name+'"');
+ // #ifdef LOG_ENVIRONMENT
+ console.log("[RPC] an EventTarget's `unload` function has been called. " +
+ 'Going to shut down Environment "' + self.name + '"');
+ // #endif
self.shutdown();
});
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list