mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Add helper function for logging messages.
This commit is contained in:
parent
51cf6bd2a5
commit
fd7e69e1e0
3 changed files with 29 additions and 21 deletions
|
@ -90,3 +90,8 @@ QVector<Log::Peer> Logger::getPeers(int lastKnownId) const
|
|||
|
||||
return m_peers.mid(size - diff);
|
||||
}
|
||||
|
||||
void LogMsg(const QString &message, const Log::MsgType &type)
|
||||
{
|
||||
Logger::instance()->addMessage(message, type);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue