Skip to content

Commit

Permalink
remove unnecessary debug logs in rtmp
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujiashun committed Nov 2, 2017
1 parent 8c82f34 commit a45df22
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/brpc/policy/rtmp_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3537,7 +3537,6 @@ butil::Status
RtmpCreateStreamMessage::AppendAndDestroySelf(butil::IOBuf* out, Socket* s) {
std::unique_ptr<RtmpCreateStreamMessage> destroy_self(this);
if (s == NULL) { // abandoned
RPC_VLOG << "[DEBUG] Socket=NULL";
return butil::Status::OK();
}
// Serialize createStream command
Expand Down Expand Up @@ -3597,8 +3596,6 @@ RtmpCreateStreamMessage::AppendAndDestroySelf(butil::IOBuf* out, Socket* s) {
socket->SetFailed(EINVAL, "Fail to serialize message");
return butil::Status(EINVAL, "Fail to serialize message");
}
RPC_VLOG << "[DEBUG] Succeed to call AppendAndDestroySelf, size=" << out->size()
<< " SocketId=" << s->id();
return butil::Status::OK();
}

Expand Down
1 change: 0 additions & 1 deletion src/brpc/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ struct BAIDU_CACHELINE_ALIGNMENT Socket::WriteRequest {
if (msg) {
if (msg != DUMMY_USER_MESSAGE) {
butil::IOBuf dummy_buf;
RPC_VLOG << "reset_pipelined_count_and_user_message";
// We don't care about the return value since the request
// is already failed.
(void)msg->AppendAndDestroySelf(&dummy_buf, NULL);
Expand Down

0 comments on commit a45df22

Please sign in to comment.