From 9fcdf4102c9887266e4504d469ad7174cf19dae3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 29 Nov 2018 13:19:32 +0300 Subject: ActivityPub logging --- src/main/java/com/juick/server/ActivityPubManager.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/com/juick/server') diff --git a/src/main/java/com/juick/server/ActivityPubManager.java b/src/main/java/com/juick/server/ActivityPubManager.java index 9829760f..4bd51ff4 100644 --- a/src/main/java/com/juick/server/ActivityPubManager.java +++ b/src/main/java/com/juick/server/ActivityPubManager.java @@ -137,6 +137,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene @Override public void processAnnounceEvent(AnnounceEvent event) { + logger.info("Announce: {} -> {}", event.getActorUri(), event.getMessageUri()); UriComponents uriComponents = UriComponentsBuilder.fromUriString(event.getMessageUri()).build(); List segments = uriComponents.getPathSegments(); if (segments.get(0).equals("m")) { @@ -151,6 +152,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene @Override public void undoAnnounceEvent(UndoAnnounceEvent event) { + logger.info("Undo announce: {} -> {}", event.getActorUri(), event.getMessageUri()); UriComponents uriComponents = UriComponentsBuilder.fromUriString(event.getMessageUri()).build(); List segments = uriComponents.getPathSegments(); if (segments.get(0).equals("m")) { -- cgit v1.2.3