summaryrefslogtreecommitdiffstats
path: root/src/PatchageEvent.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 18:56:29 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:52:17 +0100
commit320f988a5ee586235f785b15028c7ef777e981a0 (patch)
treee518cc231f1872091c3a808b93a1385957ec1214 /src/PatchageEvent.cpp
parentdbe6899651ac929f59af160dd07aaf6bda079b23 (diff)
downloadpatchage-320f988a5ee586235f785b15028c7ef777e981a0.tar.gz
patchage-320f988a5ee586235f785b15028c7ef777e981a0.tar.bz2
patchage-320f988a5ee586235f785b15028c7ef777e981a0.zip
Use prettier names for log methods
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r--src/PatchageEvent.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp
index 0f5645a..af3ed61 100644
--- a/src/PatchageEvent.cpp
+++ b/src/PatchageEvent.cpp
@@ -69,11 +69,11 @@ PatchageEvent::execute(Patchage* patchage)
if (driver) {
PatchagePort* port = driver->create_port_view(patchage, _port_1);
if (!port) {
- patchage->log().error_msg(fmt::format(
+ patchage->log().error(fmt::format(
"Unable to create view for port `{}'", _port_1));
}
} else {
- patchage->log().error_msg(
+ patchage->log().error(
fmt::format("Unknown type for port `{}'", _port_1));
}
@@ -87,10 +87,10 @@ PatchageEvent::execute(Patchage* patchage)
PatchagePort* port_2 = patchage->canvas()->find_port(_port_2);
if (!port_1) {
- patchage->log().error_msg(
+ patchage->log().error(
fmt::format("Unable to find port `{}' to connect", _port_1));
} else if (!port_2) {
- patchage->log().error_msg(
+ patchage->log().error(
fmt::format("Unable to find port `{}' to connect", _port_2));
} else {
patchage->canvas()->make_connection(port_1, port_2);
@@ -102,10 +102,10 @@ PatchageEvent::execute(Patchage* patchage)
PatchagePort* port_2 = patchage->canvas()->find_port(_port_2);
if (!port_1) {
- patchage->log().error_msg(
+ patchage->log().error(
fmt::format("Unable to find port `{}' to disconnect", _port_1));
} else if (!port_2) {
- patchage->log().error_msg(
+ patchage->log().error(
fmt::format("Unable to find port `{}' to disconnect", _port_2));
} else {
patchage->canvas()->remove_edge_between(port_1, port_2);