diff options
author | Vitaly Takmazov | 2021-10-24 05:21:28 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-10-24 05:21:28 +0300 |
commit | 9b4252fee00e2d736e5699fc15705d835c69e2fa (patch) | |
tree | a4a2cc20c21a3d82ff43b149eaed22d596acacd3 /src | |
parent | 7c1bfc34aef6846b7b16a96f3d432f06c5081972 (diff) |
Make logs more silent
Diffstat (limited to 'src')
-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 13c3fff2..0c6acb4a 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 021e5a9f..f7420f84 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; } |