You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2021/05/20 18:44:12 UTC
svn commit: r1890052 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java
Author: tilman
Date: Thu May 20 18:44:12 2021
New Revision: 1890052
URL: http://svn.apache.org/viewvc?rev=1890052&view=rev
Log:
PDFBOX-4892: change error to warning, as suggested by Michael Klink in comment to SO 67588149
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java?rev=1890052&r1=1890051&r2=1890052&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java Thu May 20 18:44:12 2021
@@ -198,7 +198,7 @@ final class FileSystemFontProvider exten
}
catch (IOException e)
{
- LOG.error("Could not load font file: " + file, e);
+ LOG.warn("Could not load font file: " + file, e);
}
return null;
}
@@ -275,7 +275,7 @@ final class FileSystemFontProvider exten
}
catch (IOException e)
{
- LOG.error("Could not load font file: " + file, e);
+ LOG.warn("Could not load font file: " + file, e);
}
return null;
}
@@ -294,7 +294,7 @@ final class FileSystemFontProvider exten
}
catch (IOException e)
{
- LOG.error("Could not load font file: " + file, e);
+ LOG.warn("Could not load font file: " + file, e);
}
return null;
}
@@ -384,7 +384,7 @@ final class FileSystemFontProvider exten
}
catch (IOException e)
{
- LOG.error("Error parsing font " + file.getPath(), e);
+ LOG.warn("Error parsing font " + file.getPath(), e);
}
}
}
@@ -518,7 +518,7 @@ final class FileSystemFontProvider exten
String[] parts = line.split("\\|", 10);
if (parts.length < 10)
{
- LOG.error("Incorrect line '" + line + "' in font disk cache is skipped");
+ LOG.warn("Incorrect line '" + line + "' in font disk cache is skipped");
continue;
}
@@ -581,7 +581,7 @@ final class FileSystemFontProvider exten
}
catch (IOException e)
{
- LOG.error("Error loading font cache, will be re-built", e);
+ LOG.warn("Error loading font cache, will be re-built", e);
return null;
}
}
@@ -607,7 +607,7 @@ final class FileSystemFontProvider exten
}
catch (IOException e)
{
- LOG.error("Could not load font file: " + ttcFile, e);
+ LOG.warn("Could not load font file: " + ttcFile, e);
}
}
@@ -633,7 +633,7 @@ final class FileSystemFontProvider exten
}
catch (IOException e)
{
- LOG.error("Could not load font file: " + ttfFile, e);
+ LOG.warn("Could not load font file: " + ttfFile, e);
}
}
@@ -735,7 +735,7 @@ final class FileSystemFontProvider exten
catch (IOException e)
{
fontInfoList.add(new FSIgnored(file, FontFormat.TTF, "*skipexception*"));
- LOG.error("Could not load font file: " + file, e);
+ LOG.warn("Could not load font file: " + file, e);
}
finally
{
@@ -768,7 +768,7 @@ final class FileSystemFontProvider exten
}
catch (IOException e)
{
- LOG.error("Could not load font file: " + pfbFile, e);
+ LOG.warn("Could not load font file: " + pfbFile, e);
}
}