| 103 | } |
| 104 | |
| 105 | void EventsWriter::WriteSerializedEvent(StringPiece event_str) { |
| 106 | if (recordio_writer_ == nullptr) { |
| 107 | if (!InitIfNeeded().ok()) { |
| 108 | LOG(ERROR) << "Write failed because file could not be opened."; |
| 109 | return; |
| 110 | } |
| 111 | } |
| 112 | num_outstanding_events_++; |
| 113 | recordio_writer_->WriteRecord(event_str).IgnoreError(); |
| 114 | } |
| 115 | |
| 116 | // NOTE(touts); This is NOT the function called by the Python code. |
| 117 | // Python calls WriteSerializedEvent(), see events_writer.i. |
nothing calls this directly
no test coverage detected