Added option to log streams by their ID, allowing for easier "per-stream" log analyzing (#5507)

This commit is contained in:
pajlada
2024-07-14 11:45:21 +02:00
committed by GitHub
parent b9f669d3a5
commit 9788d0f8f7
12 changed files with 150 additions and 68 deletions
+7 -1
View File
@@ -101,7 +101,8 @@ void Channel::addMessage(MessagePtr message, MessageContext context,
{
// Only log messages where the `DoNotLog` flag is not set
getIApp()->getChatLogger()->addMessage(this->name_, message,
this->platform_);
this->platform_,
this->getCurrentStreamID());
}
}
@@ -356,6 +357,11 @@ void Channel::reconnect()
{
}
QString Channel::getCurrentStreamID() const
{
return {};
}
std::shared_ptr<Channel> Channel::getEmpty()
{
static std::shared_ptr<Channel> channel(new Channel("", Type::None));