Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4268)

Unified Diff: chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc

Issue 3448028: Implemented VLOG() et al. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Addressed evmar's comments Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/vlog_unittest.cc ('k') | chrome/browser/sync/notifier/chrome_invalidation_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « base/vlog_unittest.cc ('k') | chrome/browser/sync/notifier/chrome_invalidation_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698