Lets reserve some memory for rule message

This commit is contained in:
Felipe Zimmerle
2019-02-12 16:13:15 -03:00
parent 221baa6e79
commit 7a6c20b931
2 changed files with 42 additions and 32 deletions

View File

@@ -88,8 +88,8 @@ class RuleMessage {
return RuleMessage::log(rm, 0);
}
static inline void _details(const RuleMessage *rm, std::string *msg);
static inline void _errorLogTail(const RuleMessage *rm, std::string *msg);
static std::string _details(const RuleMessage *rm);
static std::string _errorLogTail(const RuleMessage *rm);
int m_accuracy;
std::shared_ptr<std::string> m_clientIpAddress;