Glog's severity map.
| 122 | |
| 123 | // Glog's severity map. |
| 124 | static google::LogSeverity GetMappedSeverity(ArrowLogLevel severity) { |
| 125 | switch (severity) { |
| 126 | case ArrowLogLevel::ARROW_TRACE: |
| 127 | return google::GLOG_INFO; |
| 128 | case ArrowLogLevel::ARROW_DEBUG: |
| 129 | return google::GLOG_INFO; |
| 130 | case ArrowLogLevel::ARROW_INFO: |
| 131 | return google::GLOG_INFO; |
| 132 | case ArrowLogLevel::ARROW_WARNING: |
| 133 | return google::GLOG_WARNING; |
| 134 | case ArrowLogLevel::ARROW_ERROR: |
| 135 | return google::GLOG_ERROR; |
| 136 | case ArrowLogLevel::ARROW_FATAL: |
| 137 | return google::GLOG_FATAL; |
| 138 | default: |
| 139 | ARROW_LOG(FATAL) << "Unsupported logging level: " << static_cast<int>(severity); |
| 140 | // This return won't be hit but compiler needs it. |
| 141 | return google::GLOG_FATAL; |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | #endif |
| 146 |
no outgoing calls
no test coverage detected