Commits


octalene authored and GitHub committed 50f6fcad6cc
ARROW-16769: [C++] Add Warn() function to Status (#13383) This defines 2 new functions: `Status::Warn()` and `Status::Warn(const string&)`. For non-successful statuses, these functions log: * a simple header -- `-- Arrow Warning --` * a detail message (optional) * the string representation of the status itself Here is example output: ```cpp /.../arrow/status.cc:137: -- Arrow Warning -- /.../arrow/status.cc:139: Test warning message /.../arrow/status.cc:142: Invalid: warn_summary ``` For the following example code: ```cpp Status warn_status { Status::Invalid("warn_summary") }; warn_status.Warn("Test warning message"); ``` Lead-authored-by: Aldrin M <octalene.dev@pm.me> Co-authored-by: octalene <octalene.dev@pm.me> Signed-off-by: David Li <li.davidm96@gmail.com>