| 29 | // Write the proto entry to LOG(INFO). |
| 30 | template <typename T> |
| 31 | void OutputToLog(const T& proto) { |
| 32 | string type_name = proto.GetTypeName(); |
| 33 | const size_t index = type_name.find_last_of("."); |
| 34 | if (index != string::npos) type_name = type_name.substr(index + 1); |
| 35 | LOG(INFO) << LogMemory::kLogMemoryLabel << " " << type_name << " { " |
| 36 | << ProtoShortDebugString(proto) << " }"; |
| 37 | } |
| 38 | |
| 39 | } // namespace |
| 40 |
no test coverage detected