Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e32d9927 authored by Sandeep Dhavale's avatar Sandeep Dhavale Committed by Android (Google) Code Review
Browse files

Merge "libsnapshot: log message when the WaitForDeviceDelete() fails" into main

parents f23174cd a7bcce33
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -190,7 +190,8 @@ bool SnapuserdClient::WaitForDeviceDelete(const std::string& control_device) {
    }
    std::string response = Receivemsg();
    if (response != "success") {
        LOG(ERROR) << "Failed waiting to delete device " << control_device;
        LOG(ERROR) << "Failed waiting to delete device " << control_device << " received:'"
                   << response << "'";
        return false;
    }
    return true;
@@ -214,7 +215,7 @@ std::string SnapuserdClient::Receivemsg() {
        return {};
    }
    if (ret == 0) {
        LOG(DEBUG) << "Snapuserd:client disconnected";
        LOG(INFO) << "Snapuserd:client disconnected";
        return {};
    }
    return std::string(msg, ret);