]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Write to log output (debug level) which image source is used to load an image.
authorJeremias Maerki <jeremias@apache.org>
Tue, 30 Aug 2005 18:49:27 +0000 (18:49 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 30 Aug 2005 18:49:27 +0000 (18:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264824 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/image/ImageFactory.java

index a99a4926d2104df572590d892e4ede127eac3b65..bc225895835e180ed49cb7b7626215d0bfb70697 100644 (file)
@@ -251,6 +251,11 @@ public final class ImageFactory {
             log.error("Unsupported image type ("
                     + href + "): " + imgMimeType);
             return null;
+        } else {
+            if (log.isDebugEnabled()) {
+                log.debug("Loading " + imgMimeType + " with " + imageClass.getName() 
+                        + ": " + href);
+            }
         }
 
         // load the right image class