mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve LogFilter
This commit is contained in:
@@ -77,6 +77,18 @@ public abstract class LogFilter extends FilterEventAdapter implements LogFilterM
|
||||
protected DataSourceProxy dataSource;
|
||||
|
||||
public LogFilter(){
|
||||
{
|
||||
String prop = System.getProperty("druid.log.stmt");
|
||||
if (prop == "false") {
|
||||
statementLogEnabled = false;
|
||||
}
|
||||
}
|
||||
{
|
||||
String prop = System.getProperty("druid.log.rs");
|
||||
if (prop == "false") {
|
||||
resultSetLogEnabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user