Added option to log streams by their ID, allowing for easier "per-stream" log analyzing (#5507)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user