add logging for debug

This commit is contained in:
Micah Kornfield authored and Antoine Pitrou committed 2019-07-02 17:58:29 +02:00
1 parent 4586fd1e25
commit a4e6a1ff2e
1 file changed
+5 -1
+5 -1
View File
@@ -30,7 +30,10 @@ Status::Status(StatusCode code, std::string msg, std::shared_ptr<StatusDetail> d
state_ = new State;
state_->code = code;
state_->msg = std::move(msg);
state_->detail = std::move(detail);
if (detail != nullptr) {
std::cerr << "!!!!!!non null detail" << detail;
state_->detail = std::move(detail);
}
}
void Status::CopyFrom(const Status& s) {
@@ -39,6 +42,7 @@ void Status::CopyFrom(const Status& s) {
state_ = nullptr;
} else {
state_ = new State(*s.state_);
std::cerr << "!!!!copy_from " << state_->detail;
}
}