summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-18 01:31:40 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-18 01:31:40 +0000
commitc269b90db21b232f15cff748d68b2d91f2f6555f (patch)
treee91b1e57b359eae3675219b38366f335f1292012
parent1ef775f6f9315b8fbbf977ff2c5b800e46eeb970 (diff)
downloadchromium_src-c269b90db21b232f15cff748d68b2d91f2f6555f.zip
chromium_src-c269b90db21b232f15cff748d68b2d91f2f6555f.tar.gz
chromium_src-c269b90db21b232f15cff748d68b2d91f2f6555f.tar.bz2
Dump Xmpp connection error code to the log to facilitate debugging.
BUG=113435 Review URL: http://codereview.chromium.org/9424007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122659 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--remoting/jingle_glue/xmpp_signal_strategy.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/remoting/jingle_glue/xmpp_signal_strategy.cc b/remoting/jingle_glue/xmpp_signal_strategy.cc
index 2df898e..d58a093 100644
--- a/remoting/jingle_glue/xmpp_signal_strategy.cc
+++ b/remoting/jingle_glue/xmpp_signal_strategy.cc
@@ -152,6 +152,12 @@ void XmppSignalStrategy::OnConnectionStateChanged(
if (state == buzz::XmppEngine::STATE_OPEN) {
SetState(CONNECTED);
} else if (state == buzz::XmppEngine::STATE_CLOSED) {
+ // Make sure we dump errors to the log.
+ int subcode;
+ buzz::XmppEngine::Error error = xmpp_client_->GetError(&subcode);
+ LOG(INFO) << "XMPP connection was closed: error=" << error
+ << ", subcode=" << subcode;
+
// Client is destroyed by the TaskRunner after the client is
// closed. Reset the pointer so we don't try to use it later.
xmpp_client_ = NULL;