From 374db8fd3b0a29f763864f86777823eec4a0430a Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Fri, 2 Sep 2022 14:37:47 -0400 Subject: [PATCH] 2022-09-02 Fred Gleason * Added commented-out debug code to 'web/rdxport/podcasts.cpp'. Signed-off-by: Fred Gleason --- ChangeLog | 2 ++ web/rdxport/podcasts.cpp | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5a8d320d..c6b9437f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20928,3 +20928,5 @@ * Fixed a bug that broke the 'make dist' target. 2022-09-01 Fred Gleason * Incremented the package version to 3.6.5int4. +2022-09-02 Fred Gleason + * Added commented-out debug code to 'web/rdxport/podcasts.cpp'. diff --git a/web/rdxport/podcasts.cpp b/web/rdxport/podcasts.cpp index 816328d1..618cd68d 100644 --- a/web/rdxport/podcasts.cpp +++ b/web/rdxport/podcasts.cpp @@ -355,6 +355,14 @@ void Xport::RemovePodcast() bool Xport::PostRssElemental(RDFeed *feed,const QDateTime &now,QString *err_msg) { + FILE *ferr=NULL; + /* + if((ferr=fopen("/var/snd/PostRssElemental.debug","w+"))==NULL) { + rda->syslog(LOG_ERR,"debug file open failed [%s]",strerror(errno)); + return false; + } + */ + CURL *curl=NULL; CURLcode curl_err; char errstr[CURL_ERROR_SIZE]; @@ -366,6 +374,14 @@ bool Xport::PostRssElemental(RDFeed *feed,const QDateTime &now,QString *err_msg) xport_curl_data=feed->rssXml(err_msg,now).toUtf8(); xport_curl_data_ptr=0; + // + // Debugging Parameters + // + if(ferr!=NULL) { + curl_easy_setopt(curl,CURLOPT_VERBOSE,1); + curl_easy_setopt(curl,CURLOPT_STDERR,ferr); + } + // // Authentication Parameters //