Fix the debuglogs for the regression tests

This commit is contained in:
Felipe Zimmerle 2018-01-03 09:49:20 -03:00
parent c3b19e7f82
commit cd30509f3a
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
3 changed files with 7 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class DebugLog {
void setDebugLogLevel(int level);
void setDebugLogFile(const std::string &fileName, std::string *error);
const std::string& getDebugLogFile();
int getDebugLogLevel();
virtual int getDebugLogLevel();
private:
int m_debugLevel;

View File

@ -41,4 +41,9 @@ std::string CustomDebugLog::log_messages() {
}
int CustomDebugLog::getDebugLogLevel() {
return 9;
}
} // namespace modsecurity_test

View File

@ -32,6 +32,7 @@ class CustomDebugLog : public modsecurity::debug_log::DebugLog {
bool contains(const std::string& pattern);
std::string log_messages();
std::string error_log_messages();
int getDebugLogLevel() override;
private:
std::stringstream m_log;