mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge from 1.0.18, hotfix #207, trim the last 0 of log. 2.0.85
This commit is contained in:
commit
f8ec7c706d
3 changed files with 6 additions and 5 deletions
|
@ -501,6 +501,7 @@ Supported operating systems and hardware:
|
||||||
* 2013-10-17, Created.<br/>
|
* 2013-10-17, Created.<br/>
|
||||||
|
|
||||||
## History
|
## History
|
||||||
|
* v2.0, 2015-01-02, hotfix [#207](https://github.com/winlinvip/simple-rtmp-server/issues/207), trim the last 0 of log. 2.0.85
|
||||||
* v2.0, 2014-01-02, fix [#158](https://github.com/winlinvip/simple-rtmp-server/issues/158), http-callback check http status code ok(200). 2.0.84
|
* v2.0, 2014-01-02, fix [#158](https://github.com/winlinvip/simple-rtmp-server/issues/158), http-callback check http status code ok(200). 2.0.84
|
||||||
* v2.0, 2015-01-02, hotfix [#216](https://github.com/winlinvip/simple-rtmp-server/issues/216), http-callback post in application/json content-type. 2.0.83
|
* v2.0, 2015-01-02, hotfix [#216](https://github.com/winlinvip/simple-rtmp-server/issues/216), http-callback post in application/json content-type. 2.0.83
|
||||||
* v2.0, 2014-01-02, fix [#263](https://github.com/winlinvip/simple-rtmp-server/issues/263), srs-librtmp flv read tag should init size. 2.0.82
|
* v2.0, 2014-01-02, fix [#263](https://github.com/winlinvip/simple-rtmp-server/issues/263), srs-librtmp flv read tag should init size. 2.0.82
|
||||||
|
@ -549,6 +550,7 @@ Supported operating systems and hardware:
|
||||||
* v2.0, 2014-10-18, remove supports for OSX(darwin). 2.0.1.
|
* v2.0, 2014-10-18, remove supports for OSX(darwin). 2.0.1.
|
||||||
* v2.0, 2014-10-16, revert github srs README to English. 2.0.0.
|
* v2.0, 2014-10-16, revert github srs README to English. 2.0.0.
|
||||||
|
|
||||||
|
* v1.0, 2015-01-02, hotfix [#207](https://github.com/winlinvip/simple-rtmp-server/issues/207), trim the last 0 of log. 1.0.18
|
||||||
* v1.0, 2015-01-02, hotfix [#216](https://github.com/winlinvip/simple-rtmp-server/issues/216), http-callback post in application/json content-type. 1.0.17
|
* v1.0, 2015-01-02, hotfix [#216](https://github.com/winlinvip/simple-rtmp-server/issues/216), http-callback post in application/json content-type. 1.0.17
|
||||||
* v1.0, 2015-01-01, hotfix [#270](https://github.com/winlinvip/simple-rtmp-server/issues/270), memory leak for http client post. 1.0.16
|
* v1.0, 2015-01-01, hotfix [#270](https://github.com/winlinvip/simple-rtmp-server/issues/270), memory leak for http client post. 1.0.16
|
||||||
* v1.0, 2014-12-29, hotfix [#267](https://github.com/winlinvip/simple-rtmp-server/issues/267), the forward dest ep should use server. 1.0.15
|
* v1.0, 2014-12-29, hotfix [#267](https://github.com/winlinvip/simple-rtmp-server/issues/267), the forward dest ep should use server. 1.0.15
|
||||||
|
|
|
@ -326,7 +326,6 @@ void SrsFastLog::write_log(int& fd, char *str_log, int size, int level)
|
||||||
|
|
||||||
// add some to the end of char.
|
// add some to the end of char.
|
||||||
str_log[size++] = LOG_TAIL;
|
str_log[size++] = LOG_TAIL;
|
||||||
str_log[size++] = 0;
|
|
||||||
|
|
||||||
// if not to file, to console and return.
|
// if not to file, to console and return.
|
||||||
if (!log_to_file_tank) {
|
if (!log_to_file_tank) {
|
||||||
|
@ -336,11 +335,11 @@ void SrsFastLog::write_log(int& fd, char *str_log, int size, int level)
|
||||||
// \033[33m : yellow text code in shell
|
// \033[33m : yellow text code in shell
|
||||||
// \033[0m : normal text code
|
// \033[0m : normal text code
|
||||||
if (level <= SrsLogLevel::Trace) {
|
if (level <= SrsLogLevel::Trace) {
|
||||||
printf("%s", str_log);
|
printf("%.*s", size, str_log);
|
||||||
} else if (level == SrsLogLevel::Warn) {
|
} else if (level == SrsLogLevel::Warn) {
|
||||||
printf("\033[33m%s\033[0m", str_log);
|
printf("\033[33m%.*s\033[0m", size, str_log);
|
||||||
} else{
|
} else{
|
||||||
printf("\033[31m%s\033[0m", str_log);
|
printf("\033[31m%.*s\033[0m", size, str_log);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
// current release version
|
// current release version
|
||||||
#define VERSION_MAJOR 2
|
#define VERSION_MAJOR 2
|
||||||
#define VERSION_MINOR 0
|
#define VERSION_MINOR 0
|
||||||
#define VERSION_REVISION 84
|
#define VERSION_REVISION 85
|
||||||
// server info.
|
// server info.
|
||||||
#define RTMP_SIG_SRS_KEY "SRS"
|
#define RTMP_SIG_SRS_KEY "SRS"
|
||||||
#define RTMP_SIG_SRS_ROLE "origin/edge server"
|
#define RTMP_SIG_SRS_ROLE "origin/edge server"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue