| Index: chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc
|
| diff --git a/chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc b/chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc
|
| index 983d05fcc6a0dae8ea112ae14f067f20249fce03..d2930f30144df4c8ea2cd1b511b571c5baa9cedd 100644
|
| --- a/chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc
|
| +++ b/chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc
|
| @@ -46,17 +46,17 @@ class CacheInvalidationListenTask : public buzz::XmppTask {
|
| virtual ~CacheInvalidationListenTask() {}
|
|
|
| virtual int ProcessStart() {
|
| - LOG(INFO) << "CacheInvalidationListenTask started";
|
| + VLOG(2) << "CacheInvalidationListenTask started";
|
| return STATE_RESPONSE;
|
| }
|
|
|
| virtual int ProcessResponse() {
|
| const buzz::XmlElement* stanza = NextStanza();
|
| if (stanza == NULL) {
|
| - LOG(INFO) << "CacheInvalidationListenTask blocked";
|
| + VLOG(2) << "CacheInvalidationListenTask blocked";
|
| return STATE_BLOCKED;
|
| }
|
| - LOG(INFO) << "CacheInvalidationListenTask response received";
|
| + VLOG(2) << "CacheInvalidationListenTask response received";
|
| std::string data;
|
| if (GetCacheInvalidationIqPacketData(stanza, &data)) {
|
| callback_->Run(data);
|
| @@ -71,14 +71,14 @@ class CacheInvalidationListenTask : public buzz::XmppTask {
|
| }
|
|
|
| virtual bool HandleStanza(const buzz::XmlElement* stanza) {
|
| - LOG(INFO) << "Stanza received: "
|
| + VLOG(1) << "Stanza received: "
|
| << notifier::XmlElementToString(*stanza);
|
| if (IsValidCacheInvalidationIqPacket(stanza)) {
|
| - LOG(INFO) << "Queueing stanza";
|
| + VLOG(2) << "Queueing stanza";
|
| QueueStanza(stanza);
|
| return true;
|
| }
|
| - LOG(INFO) << "Stanza skipped";
|
| + VLOG(2) << "Stanza skipped";
|
| return false;
|
| }
|
|
|
| @@ -128,10 +128,10 @@ class CacheInvalidationSendMessageTask : public buzz::XmppTask {
|
| scoped_ptr<buzz::XmlElement> stanza(
|
| MakeCacheInvalidationIqPacket(to_jid_, task_id(), msg_,
|
| seq_, sid_));
|
| - LOG(INFO) << "Sending message: "
|
| + VLOG(1) << "Sending message: "
|
| << notifier::XmlElementToString(*stanza.get());
|
| if (SendStanza(stanza.get()) != buzz::XMPP_RETURN_OK) {
|
| - LOG(INFO) << "Error when sending message";
|
| + VLOG(2) << "Error when sending message";
|
| return STATE_ERROR;
|
| }
|
| return STATE_RESPONSE;
|
| @@ -140,23 +140,23 @@ class CacheInvalidationSendMessageTask : public buzz::XmppTask {
|
| virtual int ProcessResponse() {
|
| const buzz::XmlElement* stanza = NextStanza();
|
| if (stanza == NULL) {
|
| - LOG(INFO) << "CacheInvalidationSendMessageTask blocked...";
|
| + VLOG(2) << "CacheInvalidationSendMessageTask blocked...";
|
| return STATE_BLOCKED;
|
| }
|
| - LOG(INFO) << "CacheInvalidationSendMessageTask response received: "
|
| + VLOG(2) << "CacheInvalidationSendMessageTask response received: "
|
| << notifier::XmlElementToString(*stanza);
|
| // TODO(akalin): Handle errors here.
|
| return STATE_DONE;
|
| }
|
|
|
| virtual bool HandleStanza(const buzz::XmlElement* stanza) {
|
| - LOG(INFO) << "Stanza received: "
|
| + VLOG(1) << "Stanza received: "
|
| << notifier::XmlElementToString(*stanza);
|
| if (!MatchResponseIq(stanza, to_jid_, task_id())) {
|
| - LOG(INFO) << "Stanza skipped";
|
| + VLOG(2) << "Stanza skipped";
|
| return false;
|
| }
|
| - LOG(INFO) << "Queueing stanza";
|
| + VLOG(2) << "Queueing stanza";
|
| QueueStanza(stanza);
|
| return true;
|
| }
|
|
|