Commit d3e82cc4 authored by Joe Downing's avatar Joe Downing Committed by Commit Bot

Enabling iq stanza logging for release builds

Thi change enables iq stanza logging to make debugging signaling
issues in the wild easier.

BUG=

Change-Id: I14ab58fddcf37b350abe5ab5a1c398e43cb26336
Reviewed-on: https://chromium-review.googlesource.com/927348Reviewed-by: default avatarJamie Walch <jamiewalch@chromium.org>
Commit-Queue: Joe Downing <joedow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537897}
parent cff6369b
...@@ -261,9 +261,9 @@ bool XmppSignalStrategy::Core::SendStanza( ...@@ -261,9 +261,9 @@ bool XmppSignalStrategy::Core::SendStanza(
return false; return false;
} }
HOST_DLOG << "Sending outgoing stanza:\n" HOST_LOG << "Sending outgoing stanza:\n"
<< stanza->Str() << stanza->Str()
<< "\n========================================================="; << "\n=========================================================";
SendMessage(stanza->Str()); SendMessage(stanza->Str());
// Return false if the SendMessage() call above resulted in the SignalStrategy // Return false if the SendMessage() call above resulted in the SignalStrategy
...@@ -400,10 +400,9 @@ void XmppSignalStrategy::Core::OnStanza( ...@@ -400,10 +400,9 @@ void XmppSignalStrategy::Core::OnStanza(
const std::unique_ptr<buzz::XmlElement> stanza) { const std::unique_ptr<buzz::XmlElement> stanza) {
DCHECK(thread_checker_.CalledOnValidThread()); DCHECK(thread_checker_.CalledOnValidThread());
HOST_LOG << "Received incoming stanza:\n"
HOST_DLOG << "Received incoming stanza:\n" << stanza->Str()
<< stanza->Str() << "\n=========================================================";
<< "\n=========================================================";
for (auto& listener : listeners_) { for (auto& listener : listeners_) {
if (listener.OnSignalStrategyIncomingStanza(stanza.get())) if (listener.OnSignalStrategyIncomingStanza(stanza.get()))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment