diff --git a/src/main/java/com/commafeed/backend/pubsubhubbub/SubscriptionHandler.java b/src/main/java/com/commafeed/backend/pubsubhubbub/SubscriptionHandler.java index 399e75b1..f392732c 100644 --- a/src/main/java/com/commafeed/backend/pubsubhubbub/SubscriptionHandler.java +++ b/src/main/java/com/commafeed/backend/pubsubhubbub/SubscriptionHandler.java @@ -38,7 +38,7 @@ public class SubscriptionHandler { publicUrl = publicUrl.substring(0, publicUrl.length() - 1); } - log.info("sending new pubsub subscription to {} for {}", hub, topic); + log.debug("sending new pubsub subscription to {} for {}", hub, topic); HttpPost post = new HttpPost(hub); List nvp = Lists.newArrayList(); @@ -65,7 +65,7 @@ public class SubscriptionHandler { throw new Exception("Unexpected response code: " + code + " " + response.getStatusLine().getReasonPhrase()); } - log.info("subscribed to {} for {}", hub, topic); + log.debug("subscribed to {} for {}", hub, topic); } catch (Exception e) { log.error("Could not subscribe to {} for {} : {}", hub, topic, e.getMessage(), e); diff --git a/src/main/java/com/commafeed/frontend/rest/resources/PubSubHubbubCallbackREST.java b/src/main/java/com/commafeed/frontend/rest/resources/PubSubHubbubCallbackREST.java index 8f7fe36f..ed81f83a 100644 --- a/src/main/java/com/commafeed/frontend/rest/resources/PubSubHubbubCallbackREST.java +++ b/src/main/java/com/commafeed/frontend/rest/resources/PubSubHubbubCallbackREST.java @@ -57,13 +57,14 @@ public class PubSubHubbubCallbackREST { Preconditions.checkArgument(StringUtils.isNotEmpty(topic)); Preconditions.checkArgument("subscribe".equals(mode)); - log.info("confirmation callback received for {}", topic); + log.debug("confirmation callback received for {}", topic); List infos = feedPushInfoDAO.findByTopic(topic, false); if (infos.isEmpty() == false) { for (FeedPushInfo info : infos) { - log.info("activated push notifications for {}", info.getTopic()); + log.debug("activated push notifications for {}", + info.getTopic()); info.setActive(true); } feedPushInfoDAO.update(infos); @@ -83,7 +84,7 @@ public class PubSubHubbubCallbackREST { FetchedFeed fetchedFeed = parser.parse(null, bytes); String topic = fetchedFeed.getTopic(); if (topic != null) { - log.info("content callback received for {}", topic); + log.debug("content callback received for {}", topic); List infos = feedPushInfoDAO.findByTopic(topic, true); for (FeedPushInfo info : infos) {