| 172 | } |
| 173 | |
| 174 | static inline void DebugActionNoFail(const string& debug_action, const char* label) { |
| 175 | Status status = DebugAction(debug_action, label); |
| 176 | if (!status.ok()) { |
| 177 | LOG(ERROR) << "Ignoring debug action failure: " << status.GetDetail(); |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /// Like DebugAction() but for use in contexts that can't safely propagate an error |
| 182 | /// status. Debug action FAIL should not be used in these contexts and will be logged |