From f0622a5d6c4740bee50b7f650623ad1792479fb8 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 5 Jun 2019 15:27:34 +0300 Subject: ActivityPub: log outbound contexts --- src/main/java/com/juick/server/SignatureManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/com/juick/server/SignatureManager.java b/src/main/java/com/juick/server/SignatureManager.java index 904f89af..b64b6bd7 100644 --- a/src/main/java/com/juick/server/SignatureManager.java +++ b/src/main/java/com/juick/server/SignatureManager.java @@ -62,7 +62,7 @@ public class SignatureManager { requestHeaders.add("Host", host); requestHeaders.add("Signature", signatureString); HttpEntity request = new HttpEntity<>(Context.build(data), requestHeaders); - logger.info("Sending context: {}", jsonMapper.writeValueAsString(data)); + logger.info("Sending context to {}: {}", to.getId(), jsonMapper.writeValueAsString(data)); logger.info("Request date: {}", requestDate); ResponseEntity response = apClient.postForEntity(inbox, request, Void.class); logger.info("accepted follower: {}", response.getStatusCodeValue()); -- cgit v1.2.3