From 9b4252fee00e2d736e5699fc15705d835c69e2fa Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 24 Oct 2021 05:21:28 +0300 Subject: Make logs more silent --- src/main/java/com/juick/SignatureManager.java | 2 -- src/main/java/com/juick/service/FileSystemStorageService.java | 5 ----- 2 files changed, 7 deletions(-) (limited to 'src') 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 headers) { String signatureString = headers.get("signature"); - logger.info("Signature: {}", signatureString); Signature signature = Signature.fromString(signatureString); Optional 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; } -- cgit v1.2.3