diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-18 01:31:40 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-18 01:31:40 +0000 |
commit | c269b90db21b232f15cff748d68b2d91f2f6555f (patch) | |
tree | e91b1e57b359eae3675219b38366f335f1292012 /remoting/jingle_glue | |
parent | 1ef775f6f9315b8fbbf977ff2c5b800e46eeb970 (diff) | |
download | chromium_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
Diffstat (limited to 'remoting/jingle_glue')
-rw-r--r-- | remoting/jingle_glue/xmpp_signal_strategy.cc | 6 |
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; |