Add helper function for logging messages.

This commit is contained in:
sledgehammer999 2017-04-25 03:38:37 +03:00
parent 51cf6bd2a5
commit fd7e69e1e0
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
3 changed files with 29 additions and 21 deletions

View file

@ -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);
}