]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
subscription: add profile name to creating subscription log
authorJaroslav Kysela <perex@perex.cz>
Sun, 2 Nov 2014 12:27:12 +0000 (13:27 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 2 Nov 2014 12:30:59 +0000 (13:30 +0100)
src/htsp_server.c
src/subscriptions.c

index 9f14b0ba5843bdad16eb8fcc170c6927703c374e..ea84572c702c1203ab57b1fbef1a451bb67bd534 100644 (file)
@@ -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,
index 9fef32e9b67999f33a341a4ca9dc361c26adf95a..477ba5d0124a26eaa54a53eeafe4405c2b4e2011 100644 (file)
@@ -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 ?: "") : "<none>";
+
   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)