From cd30509f3a7922fe1d62491f071a7c7ac44cfa4e Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Wed, 3 Jan 2018 09:49:20 -0300 Subject: [PATCH] Fix the debuglogs for the regression tests --- headers/modsecurity/debug_log.h | 2 +- test/regression/custom_debug_log.cc | 5 +++++ test/regression/custom_debug_log.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/headers/modsecurity/debug_log.h b/headers/modsecurity/debug_log.h index 20141699..f8706078 100644 --- a/headers/modsecurity/debug_log.h +++ b/headers/modsecurity/debug_log.h @@ -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; diff --git a/test/regression/custom_debug_log.cc b/test/regression/custom_debug_log.cc index 388b25d9..bbf1e3cc 100644 --- a/test/regression/custom_debug_log.cc +++ b/test/regression/custom_debug_log.cc @@ -41,4 +41,9 @@ std::string CustomDebugLog::log_messages() { } +int CustomDebugLog::getDebugLogLevel() { + return 9; +} + + } // namespace modsecurity_test diff --git a/test/regression/custom_debug_log.h b/test/regression/custom_debug_log.h index defbfdb1..e35b159a 100644 --- a/test/regression/custom_debug_log.h +++ b/test/regression/custom_debug_log.h @@ -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;