Skip to content

Commit a4e6a1f

Browse files
emkornfieldpitrou
authored andcommitted
add logging for debug
1 parent 4586fd1 commit a4e6a1f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cpp/src/arrow/status.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ Status::Status(StatusCode code, std::string msg, std::shared_ptr<StatusDetail> d
3030
state_ = new State;
3131
state_->code = code;
3232
state_->msg = std::move(msg);
33-
state_->detail = std::move(detail);
33+
if (detail != nullptr) {
34+
std::cerr << "!!!!!!non null detail" << detail;
35+
state_->detail = std::move(detail);
36+
}
3437
}
3538

3639
void Status::CopyFrom(const Status& s) {
@@ -39,6 +42,7 @@ void Status::CopyFrom(const Status& s) {
3942
state_ = nullptr;
4043
} else {
4144
state_ = new State(*s.state_);
45+
std::cerr << "!!!!copy_from " << state_->detail;
4246
}
4347
}
4448

0 commit comments

Comments
 (0)