aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Vakulenko <avakulenko@google.com>2015-10-21 07:59:44 -0700
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-10-22 23:32:10 +0000
commit685b2aeed879903b86448428dec1e88c9b6741b1 (patch)
tree4c4a3c3d9a9be787e97618eb0857385eb14968db
parentfe015b7a149f87aa031dcb0c45611640fc3b15a3 (diff)
downloadweaved-685b2aeed879903b86448428dec1e88c9b6741b1.tar.gz
weaved: Add logging for network/soft AP setup/teardown
Added a few useful log messages to mark the moment when soft AP is started/stopped and when new WiFi network is setup in order to help with debugging networking events. Change-Id: Iec9b335f8accc07714d5f37b7eb4a4e5b0368023
-rw-r--r--buffet/shill_client.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/buffet/shill_client.cc b/buffet/shill_client.cc
index b9e0080..8ee5bca 100644
--- a/buffet/shill_client.cc
+++ b/buffet/shill_client.cc
@@ -138,6 +138,7 @@ void ShillClient::Init() {
void ShillClient::Connect(const string& ssid,
const string& passphrase,
const weave::DoneCallback& callback) {
+ LOG(INFO) << "Connecting to WiFi network: " << ssid;
if (connecting_service_) {
weave::ErrorPtr error;
weave::Error::AddTo(&error, FROM_HERE, kErrorDomain, "busy",
@@ -201,10 +202,12 @@ Network::State ShillClient::GetConnectionState() const {
}
void ShillClient::StartAccessPoint(const std::string& ssid) {
+ LOG(INFO) << "Starting Soft AP: " << ssid;
ap_manager_client_->Start(ssid);
}
void ShillClient::StopAccessPoint() {
+ LOG(INFO) << "Stopping Soft AP";
ap_manager_client_->Stop();
}