mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 17:15:39 +08:00
add logging for debug
This commit is contained in:
1 parent
4586fd1e25
commit
a4e6a1ff2e
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user