Skip to content

Commit c8f5375

Browse files
committed
PDFBOX-5660: optimize logging
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1928813 13f79535-47bb-0310-9956-ffa450edef68
1 parent d69fb0a commit c8f5375

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -771,11 +771,8 @@ else if (name != null)
771771
usWeightClass, sFamilyClass, ulCodePageRange1, ulCodePageRange2,
772772
macStyle, panose, this, hash, file.lastModified()));
773773

774-
if (LOG.isTraceEnabled())
775-
{
776-
LOG.trace("{}: '{}' / '{}' / '{}'", format.name(), name,
777-
fontHeaders.getFontFamily(), fontHeaders.getFontSubFamily());
778-
}
774+
LOG.trace("{}: '{}' / '{}' / '{}'", format::name, () -> name,
775+
fontHeaders::getFontFamily, fontHeaders::getFontSubFamily);
779776
}
780777
else
781778
{

0 commit comments

Comments
 (0)