13
0

Add newline to DEBUG::Soundcloud so that it's readable & flushed

This commit is contained in:
Robin Gareus 2017-03-18 14:26:53 +01:00
parent 70728fd739
commit 921d2c5809
2 changed files with 6 additions and 6 deletions

View File

@ -89,7 +89,7 @@ SoundcloudExportSelector::SoundcloudExportSelector () :
int
SoundcloudExportSelector::do_progress_callback (double ultotal, double ulnow, const std::string &filename)
{
DEBUG_TRACE (DEBUG::Soundcloud, string_compose ("SoundcloudExportSelector::do_progress_callback(%1, %2, %3)", ultotal, ulnow, filename));
DEBUG_TRACE (DEBUG::Soundcloud, string_compose ("SoundcloudExportSelector::do_progress_callback(%1, %2, %3)\n", ultotal, ulnow, filename));
if (soundcloud_cancel) {
progress_bar.set_fraction (0);
// cancel_button.set_label ("");

View File

@ -120,7 +120,7 @@ SoundcloudUploader::Get_Auth_Token( std::string username, std::string password )
// perform online request
CURLcode res = curl_easy_perform(curl_handle);
if (res != 0) {
DEBUG_TRACE (DEBUG::Soundcloud, string_compose ("curl error %1 (%2)", res, curl_easy_strerror(res) ) );
DEBUG_TRACE (DEBUG::Soundcloud, string_compose ("curl error %1 (%2)\n", res, curl_easy_strerror(res) ) );
return "";
}
@ -148,7 +148,7 @@ int
SoundcloudUploader::progress_callback(void *caller, double dltotal, double dlnow, double ultotal, double ulnow)
{
SoundcloudUploader *scu = (SoundcloudUploader *) caller;
DEBUG_TRACE (DEBUG::Soundcloud, string_compose ("%1: uploaded %2 of %3", scu->title, ulnow, ultotal) );
DEBUG_TRACE (DEBUG::Soundcloud, string_compose ("%1: uploaded %2 of %3\n", scu->title, ulnow, ultotal) );
scu->caller->SoundcloudProgress(ultotal, ulnow, scu->title); /* EMIT SIGNAL */
return 0;
}
@ -304,19 +304,19 @@ SoundcloudUploader::Upload(std::string file_path, std::string title, std::string
XMLNode *root = doc.root();
if (!root) {
DEBUG_TRACE (DEBUG::Soundcloud, "no root XML node!");
DEBUG_TRACE (DEBUG::Soundcloud, "no root XML node!\n");
return "";
}
XMLNode *url_node = root->child("permalink-url");
if (!url_node) {
DEBUG_TRACE (DEBUG::Soundcloud, "no child node \"permalink-url\" found!");
DEBUG_TRACE (DEBUG::Soundcloud, "no child node \"permalink-url\" found!\n");
return "";
}
XMLNode *text_node = url_node->child("text");
if (!text_node) {
DEBUG_TRACE (DEBUG::Soundcloud, "no text node found!");
DEBUG_TRACE (DEBUG::Soundcloud, "no text node found!\n");
return "";
}