mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Fix the debuglogs for the regression tests
This commit is contained in:
parent
c3b19e7f82
commit
cd30509f3a
@ -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;
|
||||
|
@ -41,4 +41,9 @@ std::string CustomDebugLog::log_messages() {
|
||||
}
|
||||
|
||||
|
||||
int CustomDebugLog::getDebugLogLevel() {
|
||||
return 9;
|
||||
}
|
||||
|
||||
|
||||
} // namespace modsecurity_test
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user