From 8c9c86a7f560e16e96814b6b93254393b3fcca79 Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Sat, 29 Aug 2020 06:33:34 -0400 Subject: [PATCH] adjust logging --- .../main/java/bubble/rule/bblock/BubbleBlockRuleDriver.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bubble-server/src/main/java/bubble/rule/bblock/BubbleBlockRuleDriver.java b/bubble-server/src/main/java/bubble/rule/bblock/BubbleBlockRuleDriver.java index d1508c64..20e61504 100644 --- a/bubble-server/src/main/java/bubble/rule/bblock/BubbleBlockRuleDriver.java +++ b/bubble-server/src/main/java/bubble/rule/bblock/BubbleBlockRuleDriver.java @@ -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); }