Promote some verbose XMPP log messages to LOG(INFO) level
To help debug XMPP issues on production devices (which don't have
verbose logging enabled), make some of log messages from XMPP channel
to be default log level (INFO).
BUG: 23791756
Change-Id: I1b05b955588d14ab3a86764f7d617429b2d3181d
diff --git a/libweave/src/notification/xmpp_channel.cc b/libweave/src/notification/xmpp_channel.cc
index 9dfa9ef..dc9f851 100644
--- a/libweave/src/notification/xmpp_channel.cc
+++ b/libweave/src/notification/xmpp_channel.cc
@@ -387,8 +387,8 @@
stream_ = raw_socket_.get();
callback.Run();
} else {
- VLOG(1) << "Delaying connection to XMPP server " << host << " for "
- << backoff_entry_.GetTimeUntilRelease();
+ LOG(INFO) << "Delaying connection to XMPP server " << host << " for "
+ << backoff_entry_.GetTimeUntilRelease();
task_runner_->PostDelayedTask(
FROM_HERE,
base::Bind(&XmppChannel::Connect, task_ptr_factory_.GetWeakPtr(), host,
@@ -410,7 +410,7 @@
}
void XmppChannel::Restart() {
- VLOG(1) << "Restarting XMPP";
+ LOG(INFO) << "Restarting XMPP";
Stop();
Start(delegate_);
}