xmp: Lower severity of XMP parse failure log events
authorBryan Davis <bd808@wikimedia.org>
Sun, 3 Dec 2017 00:43:52 +0000 (17:43 -0700)
committerBryan Davis <bd808@wikimedia.org>
Sun, 3 Dec 2017 00:43:52 +0000 (17:43 -0700)
Errors when parsing XMP information blocks broadly indicate that the
file is somehow malformed. This is generally a content issue rather than
an operational issue.

Bug: T118799
Change-Id: I3c7992343f28db75cd9ec0701c1eceebf6db2d08

includes/libs/xmp/XMP.php

index 0cc1466..be823a8 100644 (file)
@@ -370,7 +370,7 @@ class XMPReader implements LoggerAwareInterface {
                                $col = xml_get_current_column_number( $this->xmlParser );
                                $offset = xml_get_current_byte_index( $this->xmlParser );
 
-                               $this->logger->warning(
+                               $this->logger->info(
                                        '{method} : Error reading XMP content: {error} ' .
                                        '(line: {line} column: {column} byte offset: {offset})',
                                        [