| 19 | } |
| 20 | |
| 21 | void GetLogHistory(TVector<TString>* res) { |
| 22 | res->resize(0); |
| 23 | TGuard<TMutex> lock(LogMutex); |
| 24 | const auto begin = LoggedStringsBuffer.FirstIndex(); |
| 25 | const auto end = LoggedStringsBuffer.TotalSize(); |
| 26 | for (size_t i = begin; i < end; ++i) { |
| 27 | res->push_back(LoggedStringsBuffer[i]); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | void OutputLogTailToCout() { |
| 32 | TGuard<TMutex> lock(LogMutex); |
nothing calls this directly
no test coverage detected