very nice colored debugging and uncolored syslog

FossilOrigin-Name: 971a1f2eed2f25720af6be55c80d36ad5dc59e8ea11c48d2400bfaf7d774e59f
This commit is contained in:
7u83@mail.ru
2018-03-18 22:51:59 +00:00
parent 8d3d8f35f1
commit 6a5bd334e5
8 changed files with 152 additions and 184 deletions

View File

@ -58,7 +58,7 @@ int cw_put_msg(struct conn *conn, uint8_t * rawout)
}
cw_dbg(DBG_ELEM_OUT,"*** Assenmbling message of type %d (%s) ***",
cw_dbg(DBG_MSG_ASSEMBLY,"*** Assenmbling message of type %d (%s) ***",
msg->type, msg->name);
dst = msgptr+8;
@ -91,7 +91,8 @@ int cw_put_msg(struct conn *conn, uint8_t * rawout)
}
cw_set_msg_elems_len(msgptr, len);
cw_dbg(DBG_MSG_ASSEMBLY,"*** Done assenmbling message of type %d (%s) ***",
msg->type, msg->name);
if (type & 1) {
/* It's a request, so we have to set seqnum */
int s = conn_get_next_seqnum(conn);