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/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);