Debug: Restore -D 2 for send msg
This commit is contained in:
parent
344f5ec39d
commit
1048ab5c5d
1 changed files with 3 additions and 3 deletions
|
|
@ -368,9 +368,9 @@ clicon_msg_send(int s,
|
||||||
|
|
||||||
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "send msg len=%d", ntohl(msg->op_len));
|
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "send msg len=%d", ntohl(msg->op_len));
|
||||||
if (descr)
|
if (descr)
|
||||||
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "Send [%s]: %s", descr, msg->op_body);
|
clixon_debug(CLIXON_DBG_MSG, "Send [%s]: %s", descr, msg->op_body);
|
||||||
else{
|
else{
|
||||||
clixon_debug(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL, "Send: %s", msg->op_body);
|
clixon_debug(CLIXON_DBG_MSG, "Send: %s", msg->op_body);
|
||||||
}
|
}
|
||||||
msg_hex(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL2, (char*)msg, ntohl(msg->op_len), __FUNCTION__);
|
msg_hex(CLIXON_DBG_MSG | CLIXON_DBG_DETAIL2, (char*)msg, ntohl(msg->op_len), __FUNCTION__);
|
||||||
if (atomicio((ssize_t (*)(int, void *, size_t))write,
|
if (atomicio((ssize_t (*)(int, void *, size_t))write,
|
||||||
|
|
@ -588,7 +588,7 @@ clicon_msg_send1(int s,
|
||||||
clixon_debug(CLIXON_DBG_MSG, "Send: %s", cbuf_get(cb));
|
clixon_debug(CLIXON_DBG_MSG, "Send: %s", cbuf_get(cb));
|
||||||
if (atomicio((ssize_t (*)(int, void *, size_t))write,
|
if (atomicio((ssize_t (*)(int, void *, size_t))write,
|
||||||
s, cbuf_get(cb), cbuf_len(cb)) < 0){
|
s, cbuf_get(cb), cbuf_len(cb)) < 0){
|
||||||
clixon_err(OE_CFG, errno, "atomicio");
|
clixon_err(OE_CFG, errn o, "atomicio");
|
||||||
clixon_log(NULL, LOG_WARNING, "%s: write: %s", __FUNCTION__, strerror(errno));
|
clixon_log(NULL, LOG_WARNING, "%s: write: %s", __FUNCTION__, strerror(errno));
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue