convert cerr<< to DEBUG_TRACE
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 14 Oct 2016 16:30:04 +0000 (12:30 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 17 Oct 2016 15:16:07 +0000 (11:16 -0400)
libs/ardour/audioengine.cc

index cbae19ff51847e4f0c742de4a20cc132c2fce1f7..0eba97429bd0fbbce4046949e88b9573fd0df60c 100644 (file)
@@ -1486,13 +1486,13 @@ void
 AudioEngine::add_pending_port_deletion (Port* p)
 {
        if (_session) {
-               std::cerr << "Adding " << p->name() << " to pending port deletion list\n";
+               DEBUG_TRACE (DEBUG::Ports, string_compose ("adding %1 to pending port deletion list\n", p->name()));
                if (_port_deletions_pending.write (&p, 1) != 1) {
                        error << string_compose (_("programming error: port %1 could not be placed on the pending deletion queue\n"), p->name()) << endmsg;
                }
                _session->auto_connect_thread_wakeup ();
        } else {
-               std::cerr << "Directly delete port\n";
+               DEBUG_TRACE (DEBUG::Ports, string_compose ("Directly delete port %1\n", p->name()));
                delete p;
        }
 }