diff options
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/juick/SignatureManager.java | 2 | ||||
-rw-r--r-- | src/main/java/com/juick/service/FileSystemStorageService.java | 5 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/main/java/com/juick/SignatureManager.java b/src/main/java/com/juick/SignatureManager.java index 13c3fff23..0c6acb4ab 100644 --- a/src/main/java/com/juick/SignatureManager.java +++ b/src/main/java/com/juick/SignatureManager.java @@ -123,7 +123,6 @@ public class SignatureManager { public User verifySignature(String method, String path, Map<String, String> headers) { String signatureString = headers.get("signature"); - logger.info("Signature: {}", signatureString); Signature signature = Signature.fromString(signatureString); Optional<Context> context = getContext( UriComponentsBuilder.fromUriString(signature.getKeyId()).fragment(null).build().toUri()); @@ -134,7 +133,6 @@ public class SignatureManager { Verifier verifier = new Verifier(key, signature); try { boolean result = verifier.verify(method, path, headers); - logger.info("signature of {} is valid: {}", signature.getKeyId(), result); if (result) { User user = new User(); user.setUri(URI.create(actor.getId())); diff --git a/src/main/java/com/juick/service/FileSystemStorageService.java b/src/main/java/com/juick/service/FileSystemStorageService.java index 021e5a9fd..f7420f84b 100644 --- a/src/main/java/com/juick/service/FileSystemStorageService.java +++ b/src/main/java/com/juick/service/FileSystemStorageService.java @@ -246,12 +246,7 @@ public class FileSystemStorageService implements StorageService { } } } - } else { - logger.warn("File not exists yet: {}", imgFile.getAbsolutePath()); - return attachment; } - - logger.warn("Not a known image file {}", imgFile.getAbsolutePath()); return attachment; } |