mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 23:35:40 +08:00
Ref T184 Use CTokenBucket to throttle identical log messages.
This commit is contained in:
@@ -16,8 +16,10 @@
|
||||
#include "blackmisc/logcategory.h"
|
||||
#include "blackmisc/logpattern.h"
|
||||
#include "blackmisc/statusmessage.h"
|
||||
#include "blackmisc/tokenbucket.h"
|
||||
|
||||
#include <QList>
|
||||
#include <QHash>
|
||||
#include <QMetaMethod>
|
||||
#include <QMetaObject>
|
||||
#include <QObject>
|
||||
@@ -105,6 +107,7 @@ namespace BlackMisc
|
||||
QList<PatternPair> m_patternHandlers;
|
||||
QList<CLogPatternHandler *> handlersForMessage(const CStatusMessage &message) const;
|
||||
void removePatternHandler(CLogPatternHandler *);
|
||||
QHash<CStatusMessage, std::pair<CTokenBucket, int>> m_tokenBuckets;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user