mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge pull request #638 from m13253/2.0release
Flush the stdout buffer after logging to console
This commit is contained in:
commit
4fe1eca09c
1 changed files with 1 additions and 0 deletions
|
@ -382,6 +382,7 @@ void SrsFastLog::write_log(int& fd, char *str_log, int size, int level)
|
|||
} else{
|
||||
printf("\033[31m%.*s\033[0m", size, str_log);
|
||||
}
|
||||
fflush(stdout);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue