Improve debug logging to help track down crash. Patch by: jat Review by: scottb (TBR) git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7143 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/plugins/xpcom/ExternalWrapper.cpp b/plugins/xpcom/ExternalWrapper.cpp index 8ed590e..54bf14a 100644 --- a/plugins/xpcom/ExternalWrapper.cpp +++ b/plugins/xpcom/ExternalWrapper.cpp
@@ -45,8 +45,8 @@ NS_IMPL_ISUPPORTS2_CI(ExternalWrapper, IOOPHM, nsISecurityCheckedComponent) ExternalWrapper::ExternalWrapper() { - Debug::log(Debug::Spam) << "ExternalWrapper::ExternalWrapper()" - << Debug::flush; + Debug::log(Debug::Debugging) << "ExternalWrapper::ExternalWrapper(this=" + << this << ")" << Debug::flush; preferences = new Preferences(); windowWatcher = do_GetService(NS_WINDOWWATCHER_CONTRACTID); if (!windowWatcher) { @@ -57,7 +57,8 @@ } ExternalWrapper::~ExternalWrapper() { - Debug::log(Debug::Spam) << "ExternalWrapper::~ExternalWrapper" << Debug::flush; + Debug::log(Debug::Debugging) << "ExternalWrapper::~ExternalWrapper(this=" + << this << ")" << Debug::flush; } // define the CID for nsIHttpProtocolHandler
diff --git a/plugins/xpcom/FFSessionHandler.cpp b/plugins/xpcom/FFSessionHandler.cpp index b7ad7ff..85b895d 100755 --- a/plugins/xpcom/FFSessionHandler.cpp +++ b/plugins/xpcom/FFSessionHandler.cpp
@@ -57,6 +57,8 @@ FFSessionHandler::FFSessionHandler(HostChannel* channel) : SessionData(channel, this, getJSContext()), jsObjectId(0), jsObjectsById(NULL), stringObjectClass(NULL) { + Debug::log(Debug::Debugging) << "FFSessionHandler::FFSessionHandler(this=" + << this << ")" << Debug::flush; // TODO(jat): is there a way to avoid calling this twice, without keeping // JSContext in an instance field? JSContext* ctx = getJSContext(); @@ -118,7 +120,8 @@ } FFSessionHandler::~FFSessionHandler(void) { - Debug::log(Debug::Debugging) << "FFSessionHandler::~FFSessionHandler" << Debug::flush; + Debug::log(Debug::Debugging) << "FFSessionHandler::~FFSessionHandler(this=" + << this << ")" << Debug::flush; disconnect(); if (runtime) { JS_RemoveRootRT(runtime, &jsObjectsById);