Skip to content

Commit

Permalink
PDFBOX-5660: fix logging exception parameter type
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1918837 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Jul 2, 2024
1 parent 799004d commit 3e32b6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public static Set<X509Certificate> downloadExtraCertificates(X509Extension ext)
}
catch (IOException | URISyntaxException ex)
{
LOG.warn("{} failure: {}", urlString, ex.getMessage(), ex);
LOG.warn(() -> urlString + " failure: " + ex.getMessage(), ex);
}
catch (CertificateException ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,8 @@ private COSBase decryptString(COSString string, long objNum, long genNum)
}
catch (IOException ex)
{
LOG.error("Failed to decrypt COSString of length {} in object {}: {}",
string.getBytes().length, objNum, ex.getMessage(), ex);
LOG.error(() -> "Failed to decrypt COSString of length " + string.getBytes().length +
" in object " + objNum + ": " + ex.getMessage(), ex);
return string;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ else if (name != null)
}
catch (IOException ex)
{
LOG.warn("Could not get {} UC2 map for font {}", strName, getName(), ex);
LOG.warn("Could not get " + strName + " UC2 map for font " + getName(), ex);
}
}
}
Expand Down

0 comments on commit 3e32b6b

Please sign in to comment.