diff --git a/src/htsp_server.c b/src/htsp_server.c index 9f14b0ba..ea84572c 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -1791,7 +1791,8 @@ htsp_method_subscribe(htsp_connection_t *htsp, htsmsg_t *in) */ LIST_INSERT_HEAD(&htsp->htsp_subscriptions, hs, hs_link); - tvhdebug("htsp", "%s - subscribe to %s\n", htsp->htsp_logname, ch->ch_name ?: ""); + tvhdebug("htsp", "%s - subscribe to %s using profile %s\n", + htsp->htsp_logname, channel_get_name(ch), pro->pro_name ?: ""); hs->hs_s = subscription_create_from_channel(&hs->hs_prch, weight, htsp->htsp_logname, SUBSCRIPTION_STREAMING, diff --git a/src/subscriptions.c b/src/subscriptions.c index 9fef32e9..477ba5d0 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -647,11 +647,14 @@ subscription_create_from_channel_or_service(profile_chain_t *prch, th_subscription_t *s; channel_t *ch = NULL; service_t *t = NULL; + const char *pro_name; assert(prch); assert(prch->prch_id); assert(prch->prch_st); + pro_name = prch->prch_pro ? (prch->prch_pro->pro_name ?: "") : ""; + if (service) t = prch->prch_id; else @@ -660,11 +663,11 @@ subscription_create_from_channel_or_service(profile_chain_t *prch, s = subscription_create(prch, weight, name, flags, subscription_input, hostname, username, client); if (ch) - tvhtrace("subscription", "%04X: creating subscription for %s weight %d", - shortid(s), channel_get_name(ch), weight); + tvhtrace("subscription", "%04X: creating subscription for %s weight %d using profile %s", + shortid(s), channel_get_name(ch), weight, pro_name); else - tvhtrace("subscription", "%04X: creating subscription for service %s weight %d", - shortid(s), t->s_nicename, weight); + tvhtrace("subscription", "%04X: creating subscription for service %s weight %d sing profile %s", + shortid(s), t->s_nicename, weight, pro_name); s->ths_channel = ch; s->ths_service = t; if (ch)