Skip to content

Commit cd30509

Browse files
author
Felipe Zimmerle
committed
Fix the debuglogs for the regression tests
1 parent c3b19e7 commit cd30509

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

headers/modsecurity/debug_log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class DebugLog {
4646
void setDebugLogLevel(int level);
4747
void setDebugLogFile(const std::string &fileName, std::string *error);
4848
const std::string& getDebugLogFile();
49-
int getDebugLogLevel();
49+
virtual int getDebugLogLevel();
5050

5151
private:
5252
int m_debugLevel;

test/regression/custom_debug_log.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,9 @@ std::string CustomDebugLog::log_messages() {
4141
}
4242

4343

44+
int CustomDebugLog::getDebugLogLevel() {
45+
return 9;
46+
}
47+
48+
4449
} // namespace modsecurity_test

test/regression/custom_debug_log.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class CustomDebugLog : public modsecurity::debug_log::DebugLog {
3232
bool contains(const std::string& pattern);
3333
std::string log_messages();
3434
std::string error_log_messages();
35+
int getDebugLogLevel() override;
3536

3637
private:
3738
std::stringstream m_log;

0 commit comments

Comments
 (0)