mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
code review: do not pollute logger with firewall noop rules
This commit is contained in:
parent
5c588dae9b
commit
84f22ce3a6
1 changed files with 3 additions and 3 deletions
|
@ -639,7 +639,7 @@ PageStore.prototype.filterRequest = function(context) {
|
|||
// Dynamic hostname/type filtering.
|
||||
if ( result === 0 && µb.userSettings.advancedUserEnabled ) {
|
||||
result = µb.sessionFirewall.evaluateCellZY( context.rootHostname, context.requestHostname, requestType);
|
||||
if ( result !== 0 && µb.logger.isEnabled() ) {
|
||||
if ( result !== 0 && result !== 3 && µb.logger.isEnabled() ) {
|
||||
this.logData = µb.sessionFirewall.toLogData();
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +732,7 @@ PageStore.prototype.filterRequestNoCache = function(context) {
|
|||
// Dynamic hostname/type filtering.
|
||||
if ( result === 0 && µb.userSettings.advancedUserEnabled ) {
|
||||
result = µb.sessionFirewall.evaluateCellZY(context.rootHostname, context.requestHostname, requestType);
|
||||
if ( result !== 0 && µb.logger.isEnabled() ) {
|
||||
if ( result !== 0 && result !== 3 && µb.logger.isEnabled() ) {
|
||||
this.logData = µb.sessionFirewall.toLogData();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue