commit 4d58e19fde9e7a4ef3fea785be68d81c7b95a751
parent 8b6050411b0eb323885e7f53e3b29967a0b7e056
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Thu, 24 Feb 2022 00:03:39 +0100
make sure that virus controller logs to debug output, not only stdout
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/source/jucePlugin/VirusController.cpp b/source/jucePlugin/VirusController.cpp
@@ -140,10 +140,10 @@ namespace Virus
case MessageType::REQUEST_TOTAL:
sendSysEx(msg);
break;
- default:
- std::cout << "Controller: Begin Unhandled SysEx! --" << std::endl;
+ default:
+ LOG("Controller: Begin Unhandled SysEx! --");
printMessage(msg);
- std::cout << "Controller: End Unhandled SysEx! --" << std::endl;
+ LOG("Controller: End Unhandled SysEx! --");
}
}
}
@@ -473,11 +473,12 @@ namespace Virus
void Controller::printMessage(const SysEx &msg) const
{
+ std::stringstream ss;
for (auto &m : msg)
{
- std::cout << std::hex << static_cast<int>(m) << ",";
+ ss << std::hex << static_cast<int>(m) << ",";
}
- std::cout << std::endl;
+ LOG((ss.str()));
}
void Controller::sendSysEx(const SysEx &msg) const