From 921d2c5809a101995165ee05ad970d4a21adcdf8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 18 Mar 2017 14:26:53 +0100 Subject: [PATCH] Add newline to DEBUG::Soundcloud so that it's readable & flushed --- gtk2_ardour/soundcloud_export_selector.cc | 2 +- libs/ardour/soundcloud_upload.cc | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/soundcloud_export_selector.cc b/gtk2_ardour/soundcloud_export_selector.cc index e7e43adea0..964db3a6d0 100644 --- a/gtk2_ardour/soundcloud_export_selector.cc +++ b/gtk2_ardour/soundcloud_export_selector.cc @@ -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 (""); diff --git a/libs/ardour/soundcloud_upload.cc b/libs/ardour/soundcloud_upload.cc index cbf60d8579..f81d106bc4 100644 --- a/libs/ardour/soundcloud_upload.cc +++ b/libs/ardour/soundcloud_upload.cc @@ -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 ""; }