1
0
Fork 0
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:
winlin 2016-09-09 11:02:52 +08:00 committed by GitHub
commit 4fe1eca09c

View file

@ -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;
}