| 45 | constexpr BaseLogOutput(int fd = 0) : log_file_fd(fd) { } |
| 46 | |
| 47 | void write(int, const char* begin, const char* end) override { |
| 48 | std::ignore = ::write(log_file_fd, begin, end - begin); |
| 49 | throttle_block(); |
| 50 | } |
| 51 | void throttle_block() { |
| 52 | if (throttle == -1UL) return; |
| 53 | time_t t = time(0); |