mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
Issue #15 Removed old log distribution code
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
#include "blackcore/inputmanager.h"
|
||||
#include "blackmisc/dbusserver.h"
|
||||
#include "blackmisc/logcategory.h"
|
||||
#include "blackmisc/loghandler.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/settingscache.h"
|
||||
#include "blackmisc/simplecommandparser.h"
|
||||
@@ -39,41 +38,6 @@ namespace BlackCore
|
||||
return this;
|
||||
}
|
||||
|
||||
void CContextApplication::logMessage(const CStatusMessage &message, const CIdentifier &origin)
|
||||
{
|
||||
if (!origin.hasApplicationProcessId())
|
||||
{
|
||||
CLogHandler::instance()->logRemoteMessage(message);
|
||||
}
|
||||
if (subscribersOf(message).containsAnyNotIn(CIdentifierList({ origin, {} })))
|
||||
{
|
||||
emit this->messageLogged(message, origin);
|
||||
}
|
||||
}
|
||||
|
||||
void CContextApplication::addLogSubscription(const CIdentifier &subscriber, const CLogPattern &pattern)
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
emit this->logSubscriptionAdded(subscriber, pattern);
|
||||
}
|
||||
|
||||
void CContextApplication::removeLogSubscription(const CIdentifier &subscriber, const CLogPattern &pattern)
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
emit this->logSubscriptionRemoved(subscriber, pattern);
|
||||
}
|
||||
|
||||
CLogSubscriptionHash CContextApplication::getAllLogSubscriptions() const
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
return m_logSubscriptions;
|
||||
}
|
||||
|
||||
void CContextApplication::synchronizeLogSubscriptions()
|
||||
{
|
||||
// no-op: proxy implements this method by calling getAllLogSubscriptions
|
||||
}
|
||||
|
||||
void CContextApplication::changeSettings(const CValueCachePacket &settings, const CIdentifier &origin)
|
||||
{
|
||||
// Intentionally don't check for round trip here
|
||||
|
||||
Reference in New Issue
Block a user