| 269 | } |
| 270 | |
| 271 | int RedirectStdOutput::sync() |
| 272 | { |
| 273 | // Print as log as this might be verbose |
| 274 | if (!buffer.empty() && buffer.back() == '\n') { |
| 275 | Base::Console().log("%s", buffer.c_str()); |
| 276 | buffer.clear(); |
| 277 | } |
| 278 | return 0; |
| 279 | } |
| 280 | |
| 281 | RedirectStdLog::RedirectStdLog() |
| 282 | { |