Skip to content

Commit

Permalink
MT#56128 Re-move misleading log line
Browse files Browse the repository at this point in the history
Re-move misleading log line to another place.
In the `sdp_manipulate_remove()` function:
- true - means remove
- false - means don't remove

Correct logging accordingly.

Change-Id: I3e0c08552a0192f3985da990b5f0c96cc31ece94
(cherry picked from commit ac488e3)
(cherry picked from commit 954e3a5)
  • Loading branch information
zenichev committed Oct 22, 2024
1 parent 38c0d33 commit 139241e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions daemon/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,13 @@ static bool sdp_manipulate_remove(struct sdp_manipulations * sdp_manipulations,
return false;

str_case_ht ht = sdp_manipulations->rem_commands;
if (t_hash_table_is_set(ht) && t_hash_table_lookup(ht, attr_name))
return true;

ilog(LOG_DEBUG, "Cannot insert: '" STR_FORMAT "' because prevented by SDP manipulations (remove)",
STR_FMT(attr_name));
if (t_hash_table_is_set(ht) && t_hash_table_lookup(ht, attr_name)) {
ilog(LOG_DEBUG, "Cannot insert: '" STR_FORMAT "' because prevented by SDP manipulations (remove)",
STR_FMT(attr_name));
return true; /* means remove */
}

return false;
return false; /* means don't remove */
}

/**
Expand Down

0 comments on commit 139241e

Please sign in to comment.