xua_asp_fsm: Log ERROR message when we send a MGMT:ERR message
We've always been logging received MGMT:ERR messages, but we somehow didn't log the transmission of them. So whenever osmo-stp generates some error to a connected peer, the peer would show it, but not osmo-stp itself. Let's fix that. Change-Id: I50c05409646fd47e70d904fb95bbc2fa15703b3e
This commit is contained in:
parent
02d664b1e4
commit
8000b23106
|
@ -293,6 +293,8 @@ static int peer_send_error(struct osmo_fsm_inst *fi, uint32_t err_code)
|
|||
struct xua_msg *xua = xua_msg_alloc();
|
||||
struct msgb *msg;
|
||||
|
||||
LOGPFSML(fi, LOGL_ERROR, "Tx MGMT_ERR '%s'\n", get_value_string(m3ua_err_names, err_code));
|
||||
|
||||
xua->hdr = XUA_HDR(SUA_MSGC_MGMT, SUA_MGMT_ERR);
|
||||
xua->hdr.version = SUA_VERSION;
|
||||
xua_msg_add_u32(xua, SUA_IEI_ERR_CODE, err_code);
|
||||
|
|
Loading…
Reference in New Issue