1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-17 09:41:08 +01:00

Wip: Configure logback logging

This commit is contained in:
Paul Schaub 2021-08-25 12:39:31 +02:00
parent 4d6ca80e25
commit 1124c6fd15
5 changed files with 30 additions and 0 deletions

View file

@ -134,11 +134,13 @@ public final class DecryptionStreamFactory {
// Not an OpenPGP message.
// Reset the buffered stream to parse the message as arbitrary binary data
// to allow for detached signature verification.
LOGGER.debug("The message appears to not be an OpenPGP message. This is probably data signed with detached signatures?");
bufferedIn.reset();
inputStream = bufferedIn;
} catch (IOException e) {
if (e.getMessage().contains("invalid armor")) {
// We falsely assumed the data to be armored.
LOGGER.debug("The message is apparently not armored.");
bufferedIn.reset();
inputStream = bufferedIn;
} else {