diff data/osc/OSCQueue.cpp @ 1665:813dadf7c086 osc-script

Debug output
author Chris Cannam
date Tue, 26 Mar 2019 14:28:58 +0000
parents 70e172e6cc59
children 1078f0ef3012
line wrap: on
line diff
--- a/data/osc/OSCQueue.cpp	Mon Mar 25 15:48:16 2019 +0000
+++ b/data/osc/OSCQueue.cpp	Tue Mar 26 14:28:58 2019 +0000
@@ -30,6 +30,8 @@
 
 #include <unistd.h>
 
+#include <QThread>
+
 void
 OSCQueue::oscError(int num, const char *msg, const char *path)
 {
@@ -155,6 +157,9 @@
     OSCMessage *message = m_buffer.readOne();
     OSCMessage rmessage = *message;
     delete message;
+    SVDEBUG << "OSCQueue::readMessage: In thread "
+            << QThread::currentThreadId() << ": message follows:\n"
+            << rmessage.toString() << endl;
     return rmessage;
 }