From 944e14bb6d6f63c00825407a71a96c319a4b45e8 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 29 Sep 2020 13:43:33 -0400 Subject: [PATCH] 2020-09-29 Fred Gleason * Added debugging messages to syslog for the podcasting subsystem. Signed-off-by: Fred Gleason --- ChangeLog | 2 ++ lib/rdfeed.cpp | 12 ++++++++++++ lib/rdpodcast.cpp | 4 ++++ web/rdxport/podcasts.cpp | 1 + 4 files changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index 00fe2550..221452b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20356,3 +20356,5 @@ underlying posts when viewing a superfeed. 2020-09-23 Fred Gleason * Incremented the package version to 3.4.0rss5. +2020-09-29 Fred Gleason + * Added debugging messages to syslog for the podcasting subsystem. diff --git a/lib/rdfeed.cpp b/lib/rdfeed.cpp index 04e13b5e..990785ae 100644 --- a/lib/rdfeed.cpp +++ b/lib/rdfeed.cpp @@ -837,6 +837,8 @@ bool RDFeed::postPodcast(unsigned cast_id) const curl_easy_setopt(curl,CURLOPT_NOPROGRESS,1); curl_easy_setopt(curl,CURLOPT_URL, rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); + rda->syslog(LOG_DEBUG,"using web service URL: %s", + rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); // // Send it @@ -939,6 +941,8 @@ bool RDFeed::postXml() curl_easy_setopt(curl,CURLOPT_NOPROGRESS,1); curl_easy_setopt(curl,CURLOPT_URL, rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); + rda->syslog(LOG_DEBUG,"using web service URL: %s", + rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); // // Send it @@ -1019,6 +1023,8 @@ bool RDFeed::removeRss() curl_easy_setopt(curl,CURLOPT_NOPROGRESS,1); curl_easy_setopt(curl,CURLOPT_URL, rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); + rda->syslog(LOG_DEBUG,"using web service URL: %s", + rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); // // Send it @@ -1088,6 +1094,8 @@ bool RDFeed::postImage(int img_id) const curl_easy_setopt(curl,CURLOPT_NOPROGRESS,1); curl_easy_setopt(curl,CURLOPT_URL, rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); + rda->syslog(LOG_DEBUG,"using web service URL: %s", + rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); // // Send it @@ -1157,6 +1165,8 @@ bool RDFeed::removeImage(int img_id) const curl_easy_setopt(curl,CURLOPT_NOPROGRESS,1); curl_easy_setopt(curl,CURLOPT_URL, rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); + rda->syslog(LOG_DEBUG,"using web service URL: %s", + rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); // // Send it @@ -1862,6 +1872,8 @@ bool RDFeed::SavePodcast(unsigned cast_id,const QString &src_filename) const curl_easy_setopt(curl,CURLOPT_NOPROGRESS,1); curl_easy_setopt(curl,CURLOPT_URL, rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); + rda->syslog(LOG_DEBUG,"using web service URL: %s", + rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); // // Send it diff --git a/lib/rdpodcast.cpp b/lib/rdpodcast.cpp index 7fb68d22..04905fa0 100644 --- a/lib/rdpodcast.cpp +++ b/lib/rdpodcast.cpp @@ -412,6 +412,8 @@ bool RDPodcast::removePodcast() const curl_easy_setopt(curl,CURLOPT_NOPROGRESS,1); curl_easy_setopt(curl,CURLOPT_URL, rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); + rda->syslog(LOG_DEBUG,"using web service URL: %s", + rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); // // Send it @@ -495,6 +497,8 @@ bool RDPodcast::DeletePodcast(unsigned cast_id) const curl_easy_setopt(curl,CURLOPT_NOPROGRESS,1); curl_easy_setopt(curl,CURLOPT_URL, rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); + rda->syslog(LOG_DEBUG,"using web service URL: %s", + rda->station()->webServiceUrl(rda->config()).toUtf8().constData()); // // Send it diff --git a/web/rdxport/podcasts.cpp b/web/rdxport/podcasts.cpp index d31135d1..816328d1 100644 --- a/web/rdxport/podcasts.cpp +++ b/web/rdxport/podcasts.cpp @@ -377,6 +377,7 @@ bool Xport::PostRssElemental(RDFeed *feed,const QDateTime &now,QString *err_msg) rda->station()->sshIdentityFile().toUtf8().constData()); curl_easy_setopt(curl,CURLOPT_KEYPASSWD, feed->purgePassword().toUtf8().constData()); + *err_msg+="using ssh key at \""+rda->station()->sshIdentityFile()+"\" "; } else { curl_easy_setopt(curl,CURLOPT_USERNAME,