summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/AlsaDriver.cpp6
-rw-r--r--src/Patchage.cpp2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp
index 8eaa985..1936d30 100644
--- a/src/AlsaDriver.cpp
+++ b/src/AlsaDriver.cpp
@@ -308,9 +308,7 @@ AlsaDriver::connect(const PortID& tail_id, const PortID& head_id)
result = false;
}
- if (result) {
- _log.info(fmt::format("[ALSA] Connected {} => {}", tail_id, head_id));
- } else {
+ if (!result) {
_log.error(
fmt::format("[ALSA] Failed to connect {} => {}", tail_id, head_id));
}
@@ -357,8 +355,6 @@ AlsaDriver::disconnect(const PortID& tail_id, const PortID& head_id)
return false;
}
- _log.info(fmt::format("[ALSA] Disconnected {} => {}", tail_id, head_id));
-
return true;
}
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index f3dfc2e..335496d 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -518,6 +518,7 @@ void
Patchage::refresh()
{
auto sink = [this](const PatchageEvent& event) {
+ _log.info(event_to_string(event));
handle_event(*this, event);
};
@@ -595,6 +596,7 @@ Patchage::process_events()
std::lock_guard<std::mutex> lock{_events_mutex};
while (!_driver_events.empty()) {
+ _log.info(event_to_string(_driver_events.front()));
handle_event(*this, _driver_events.front());
_driver_events.pop();
}