buffet: Integrate the XmppClient into buffet
TEST=FEATURES=test emerge-${BOARD} buffet
BUG=brillo:95
Change-Id: Ife3abac34db8e331d936891cfe4f3e937ecfb49c
Reviewed-on: https://chromium-review.googlesource.com/250462
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Nathan Bullock <nathanbullock@google.com>
Tested-by: Nathan Bullock <nathanbullock@google.com>
diff --git a/buffet/xmpp/xmpp_connection.cc b/buffet/xmpp/xmpp_connection.cc
index 8799493..38e99e3 100644
--- a/buffet/xmpp/xmpp_connection.cc
+++ b/buffet/xmpp/xmpp_connection.cc
@@ -56,12 +56,12 @@
return false;
}
*msg = std::string{buffer, static_cast<size_t>(bytes)};
- VLOG(1) << "READ: (" << msg->size() << ")" << *msg;
+ LOG(INFO) << "Read: (" << msg->size() << ")" << *msg;
return true;
}
bool XmppConnection::Write(const std::string& msg) const {
- VLOG(1) << "WRITE: (" << msg.size() << ")" << msg;
+ LOG(INFO) << "Write: (" << msg.size() << ")" << msg;
if (!base::WriteFileDescriptor(fd_, msg.c_str(), msg.size())) {
LOG(WARNING) << "Failure writing";
return false;