aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-01-30 16:01:22 +0300
committerGravatar Vitaly Takmazov2019-01-30 16:01:22 +0300
commita2a86393941e9520a8f8a126fbad0c4fad406720 (patch)
treebb41f6a1105de9995d3f4d70757654fccda1a6af
parent3f8ec341a8999d810fec2f9a504b98c20e63ce0e (diff)
info loglevel for signatures
-rw-r--r--src/main/java/com/juick/server/SignatureManager.java2
-rw-r--r--src/main/java/com/juick/server/api/activity/Profile.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/SignatureManager.java b/src/main/java/com/juick/server/SignatureManager.java
index 2cbe243e..032f71ee 100644
--- a/src/main/java/com/juick/server/SignatureManager.java
+++ b/src/main/java/com/juick/server/SignatureManager.java
@@ -87,7 +87,7 @@ public class SignatureManager {
public User verifySignature(String method, String path, Map<String, String> headers) {
String signatureString = headers.get("signature");
if (StringUtils.isNotEmpty(signatureString)) {
- logger.debug("Signature: {}", signatureString);
+ logger.info("Signature: {}", signatureString);
Signature signature = Signature.fromString(signatureString);
Optional<Context> context = getContext(URI.create(signature.getKeyId()));
if (context.isPresent() && context.get() instanceof Person) {
diff --git a/src/main/java/com/juick/server/api/activity/Profile.java b/src/main/java/com/juick/server/api/activity/Profile.java
index b1d325f9..ff9df4fc 100644
--- a/src/main/java/com/juick/server/api/activity/Profile.java
+++ b/src/main/java/com/juick/server/api/activity/Profile.java
@@ -261,7 +261,7 @@ public class Profile {
@PostMapping(value = "/api/inbox", consumes = {Context.LD_JSON_MEDIA_TYPE, Context.ACTIVITYSTREAMS_PROFILE_MEDIA_TYPE})
public ResponseEntity<Void> processInbox(InputStream inboxData) throws Exception {
String inbox = IOUtils.toString(inboxData, StandardCharsets.UTF_8);
- logger.debug("Inbox: {}", inbox);
+ logger.info("Inbox: {}", inbox);
Activity activity = jsonMapper.readValue(inbox, Activity.class);
User visitor = UserUtils.getCurrentUser();
if ((StringUtils.isNotEmpty(visitor.getUri().toString()) && visitor.getUri().equals(URI.create(activity.getActor()))) || !visitor.isAnonymous()) {