diff --git a/src/Core.cpp b/src/Core.cpp index bfc0bbb..c7e5109 100644 --- a/src/Core.cpp +++ b/src/Core.cpp @@ -1246,9 +1246,23 @@ namespace Echoion::Core // Create reply callback auto replyFunc = [this](uint64_t clientId, std::string_view message) { + Void::Log::debug( + "Core", "{}", + std::format("Reply -> client {} ({} bytes)", + clientId, message.size())); if (pluginInterface_) { - pluginInterface_->sendTextMessage( + auto sent = pluginInterface_->sendTextMessage( clientId, std::string(message)); + if (!sent) { + Void::Log::warn( + "Core", "{}", + std::format("Reply send failed: {}", + sent.error().message)); + } + } else { + Void::Log::warn("Core", "{}", + "Reply dropped: no plugin " + "interface"); } };