Skip to content

Commit

Permalink
add log for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyouyi1513 committed Jan 18, 2018
1 parent b6c59ae commit 9b8a6d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public enum Item {
REFLECTION_MONITOR("reflection.monitor",
"java.lang.Runtime.getRuntime,java.lang.Runtime.exec,java.lang.ProcessBuilder.start"),
BLOCK_STATUS_CODE("block.status_code", "302"),
DEBUG("debug", "0"),
DEBUG("debug_level", "0"),
ALGORITHM_CONFIG("algorithm.config", "{}", false);


Expand Down Expand Up @@ -562,6 +562,10 @@ public synchronized void setDebugLevel(String debugLevel) {
this.debugLevel = Integer.parseInt(debugLevel);
if (this.debugLevel < 0) {
this.debugLevel = 0;
} else {
String debugEnableMessage = "[OpenRASP] Debug output enabled, debug_level=" + debugLevel;
System.out.println(debugEnableMessage);
LOGGER.info(debugEnableMessage);
}
}

Expand Down
2 changes: 1 addition & 1 deletion integration-test/tester/sql-connection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const POLICY_ALARM_FILE = SERVER_HOME + '/rasp/logs/policy_alarm/policy_alarm.lo
const RASP_LOG_FILE = SERVER_HOME + '/rasp/logs/rasp/rasp.log';
const watchFileOptions = {
persistent: false,
interval: 100
interval: 25
};
chai.expect();
chai.should();
Expand Down

0 comments on commit 9b8a6d7

Please # to comment.