Plugin: log sendTextMessage size + chunk count (debug)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
a356251c83
commit
ac88cd6eb1
1 file changed
+7
-1
@@ -415,7 +415,13 @@ namespace Echoion::Plugin
|
||||
"Plugin interface not initialized");
|
||||
}
|
||||
|
||||
for (const auto& chunk : chunkMessage(message, kMaxMessageBytes)) {
|
||||
const auto chunks = chunkMessage(message, kMaxMessageBytes);
|
||||
Void::Log::debug(
|
||||
"PluginInterface", "{}",
|
||||
std::format("sendTextMessage: {} bytes to client {} in {} chunk(s)",
|
||||
message.size(), targetId, chunks.size()));
|
||||
|
||||
for (const auto& chunk : chunks) {
|
||||
unsigned int error = ts3Functions_->requestSendPrivateTextMsg(
|
||||
serverConnectionHandlerId_, chunk.c_str(),
|
||||
static_cast<anyID>(targetId), nullptr);
|
||||
|
||||
Reference in new issue
Block a user