Skip to content

Commit

Permalink
Improved debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jun 22, 2023
1 parent 371d157 commit 395f598
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ public MIC calculateMIC (@Nonnull final MimeBodyPart aPart,

final String sMICEncoding = aPart.getEncoding ();
if (LOGGER.isDebugEnabled ())
LOGGER.debug ("Using encoding '" + sMICEncoding + "' for MIC calculation");
LOGGER.debug (sMICEncoding != null ? "Using Content-Transfer-Encoding '" + sMICEncoding + "' for MIC calculation"
: "Using no specific Content-Transfer-Encoding for MIC calculation");

// No need to canonicalize here - see issue #12
try (final DigestOutputStream aDigestOS = new DigestOutputStream (new NullOutputStream (), aMessageDigest);
Expand Down

0 comments on commit 395f598

Please sign in to comment.