From d814acbb8f3b48bc1165b8012da6ed0207ddb086 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Fri, 12 Feb 2016 18:22:12 -0600 Subject: add some debugging capability for users of SystemExec. Needs review. --- libs/ardour/export_handler.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index 42de0fa0c6..96e8052bf4 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -355,15 +355,17 @@ ExportHandler::finish_timespan () subs.insert (std::pair ('n', session.name ())); ARDOUR::SystemExec *se = new ARDOUR::SystemExec(fmt->command(), subs); + info << "Post-export command line : {" << se->GetString() << "}" << endmsg; se->ReadStdout.connect_same_thread(command_connection, boost::bind(&ExportHandler::command_output, this, _1, _2)); - if (se->start (2) == 0) { + int ret = se->start (2); + if (ret == 0) { // successfully started while (se->is_running ()) { // wait for system exec to terminate Glib::usleep (1000); } } else { - error << "post-export hook failed! " << fmt->command() << endmsg; + error << "Post-export command FAILED with Error: " << ret << endmsg; } delete (se); } -- cgit v1.2.3