Browse Source

MT#55283 lump in subscription log output

Avoids redundant loop iteration.

Also change log level to INFO to match all other log output.

Change-Id: I5587c59398656dc03fcb346edcbc48f350a4a392
(cherry picked from commit d7d7a98071)
(cherry picked from commit 9b8ed29451)
mr12.5.1
Richard Fuchs 4 months ago
parent
commit
17c3e33557
1 changed files with 8 additions and 20 deletions
  1. +8
    -20
      daemon/call.c

+ 8
- 20
daemon/call.c View File

@ -3831,36 +3831,24 @@ void call_destroy(call_t *c) {
(unsigned int) (rtpe_now.tv_sec - ml->created) % 60,
STR_FMT_M(&ml->viabranch));
for (unsigned int i = 0; i < ml->medias->len; i++)
{
struct call_media *media = ml->medias->pdata[i];
if (!media)
for (unsigned int m = 0; m < ml->medias->len; m++) {
md = ml->medias->pdata[m];
if (!md)
continue;
for (__auto_type ll = media->media_subscriptions.head; ll; ll = ll->next)
for (__auto_type ll = md->media_subscriptions.head; ll; ll = ll->next)
{
struct media_subscription * ms = ll->data;
ilog(LOG_DEBUG, "--- subscribed to media with monologue tag '" STR_FORMAT_M "' (index: %d)",
ilog(LOG_INFO, "--- subscribed to media with monologue tag '" STR_FORMAT_M "' (index: %d)",
STR_FMT_M(&ms->monologue->tag), ms->media->index);
}
}
for (unsigned int i = 0; i < ml->medias->len; i++)
{
struct call_media *media = ml->medias->pdata[i];
if (!media)
continue;
for (__auto_type ll = media->media_subscribers.head; ll; ll = ll->next)
for (__auto_type ll = md->media_subscribers.head; ll; ll = ll->next)
{
struct media_subscription * ms = ll->data;
ilog(LOG_DEBUG, "--- subscription for media with monologue tag '" STR_FORMAT_M "' (index: %d)",
ilog(LOG_INFO, "--- subscription for media with monologue tag '" STR_FORMAT_M "' (index: %d)",
STR_FMT_M(&ms->monologue->tag), ms->media->index);
}
}
for (unsigned int m = 0; m < ml->medias->len; m++) {
md = ml->medias->pdata[m];
if (!md)
continue;
// stats output only - no cleanups


Loading…
Cancel
Save