mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Add helper function for logging messages.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user