Pārlūkot izejas kodu

adjust logging

tags/v1.0.3
Jonathan Cobb pirms 4 gadiem
vecāks
revīzija
8c9c86a7f5
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      bubble-server/src/main/java/bubble/rule/bblock/BubbleBlockRuleDriver.java

+ 3
- 1
bubble-server/src/main/java/bubble/rule/bblock/BubbleBlockRuleDriver.java Parādīt failu

@@ -361,12 +361,14 @@ public class BubbleBlockRuleDriver extends TrafficAnalyticsRuleDriver implements
return in;
}
if (bubbleBlockConfig.inPageBlocks() && showStats) {
if (log.isInfoEnabled()) log.info(prefix + "SEND: both inPageBlocks and showStats are true, filtering");
return filterInsertJs(in, filterRequest, filterCtx, BUBBLE_JS_TEMPLATE, getBubbleJsStatsTemplate(), BLOCK_STATS_JS, showStats);
}
if (bubbleBlockConfig.inPageBlocks()) {
if (log.isInfoEnabled()) log.info(prefix + "SEND: both inPageBlocks is true, filtering");
return filterInsertJs(in, filterRequest, filterCtx, BUBBLE_JS_TEMPLATE, EMPTY, BLOCK_STATS_JS, showStats);
}
log.warn(prefix+"inserting JS for stats into: "+request.getUrl()+" with Content-Type: "+filterRequest.getContentType());
if (log.isInfoEnabled()) log.info(prefix+"inserting JS for stats into: "+request.getUrl()+" with Content-Type: "+filterRequest.getContentType());
return filterInsertJs(in, filterRequest, filterCtx, getBubbleJsStatsTemplate(), null, null, showStats);
}



Notiek ielāde…
Atcelt
Saglabāt