From ef615302b16853641adbf4ceacad533f566dbb2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Mon, 11 Jan 2010 20:46:41 +0000 Subject: [PATCH] Log errors when direct subscription fails --- src/subscriptions.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/subscriptions.c b/src/subscriptions.c index 22c461c9..a3980e82 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -289,13 +289,15 @@ subscription_create_from_transport(th_transport_t *t, const char *name, { th_subscription_t *s = subscription_create(INT32_MAX, name, st, flags); source_info_t si; + int r; if(t->tht_status != TRANSPORT_RUNNING) { - if(transport_start(t, INT32_MAX, 1, 0)) { + if((r = transport_start(t, INT32_MAX, 1, 0)) != 0) { subscription_unsubscribe(s); tvhlog(LOG_INFO, "subscription", - "\"%s\" direct subscription failed", name); + "\"%s\" direct subscription failed -- %s", name, + transport_nostart2txt(r)); return NULL; } }