mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #132: build failed when enable the info or verbose log.
This commit is contained in:
parent
2567a89599
commit
0aa053433c
3 changed files with 7 additions and 9 deletions
|
@ -84,9 +84,8 @@ void SrsHttpHeartbeat::heartbeat()
|
|||
|
||||
ISrsHttpMessage* msg = NULL;
|
||||
if ((ret = http.post(uri.get_path(), req, &msg)) != ERROR_SUCCESS) {
|
||||
srs_info("http post hartbeart uri failed. "
|
||||
"url=%s, request=%s, response=%s, ret=%d",
|
||||
url.c_str(), req.c_str(), res.c_str(), ret);
|
||||
srs_info("http post hartbeart uri failed. url=%s, request=%s, ret=%d",
|
||||
url.c_str(), req.c_str(), ret);
|
||||
return;
|
||||
}
|
||||
SrsAutoFree(ISrsHttpMessage, msg);
|
||||
|
@ -96,9 +95,8 @@ void SrsHttpHeartbeat::heartbeat()
|
|||
return;
|
||||
}
|
||||
|
||||
srs_info("http hook hartbeart success. "
|
||||
"url=%s, request=%s, status_code=%d, response=%s, ret=%d",
|
||||
url.c_str(), req.c_str(), status_code, res.c_str(), ret);
|
||||
srs_info("http hook hartbeart success. url=%s, request=%s, response=%s, ret=%d",
|
||||
url.c_str(), req.c_str(), res.c_str(), ret);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue