mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +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 setDebugLogLevel(int level);
|
||||||
void setDebugLogFile(const std::string &fileName, std::string *error);
|
void setDebugLogFile(const std::string &fileName, std::string *error);
|
||||||
const std::string& getDebugLogFile();
|
const std::string& getDebugLogFile();
|
||||||
int getDebugLogLevel();
|
virtual int getDebugLogLevel();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_debugLevel;
|
int m_debugLevel;
|
||||||
|
@ -41,4 +41,9 @@ std::string CustomDebugLog::log_messages() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int CustomDebugLog::getDebugLogLevel() {
|
||||||
|
return 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace modsecurity_test
|
} // namespace modsecurity_test
|
||||||
|
@ -32,6 +32,7 @@ class CustomDebugLog : public modsecurity::debug_log::DebugLog {
|
|||||||
bool contains(const std::string& pattern);
|
bool contains(const std::string& pattern);
|
||||||
std::string log_messages();
|
std::string log_messages();
|
||||||
std::string error_log_messages();
|
std::string error_log_messages();
|
||||||
|
int getDebugLogLevel() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::stringstream m_log;
|
std::stringstream m_log;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user