html2wt: Use info level for unactionable Cite logspam caused by CX usage

Content Translation can lead to Cite references to nodes that aren't present
in the translated document. For now, I've suppressed these log entries in
Parsoid's logstash dashboard. But, there is no reason to continue emitting
these at error level given the large volume of CX pages and hence a large
volume of these non-actionable log entries.

Change-Id: I8df7e722203d7b866d987d626215bcd53b945d60
This commit is contained in:
Subramanya Sastry 2022-03-02 09:56:15 -06:00 committed by jenkins-bot
parent 20e5117622
commit 15a38973c7

View file

@ -218,7 +218,9 @@ class Ref extends ExtensionTagHandler {
}
if ( !$editedHtml ) {
$extApi->log(
'error/domdiff/edited/ref',
// use info level to avoid logspam for CX edits where translated
// docs might reference nodes not copied over from orig doc.
'info/domdiff/edited/ref',
"extension src id {$editedId} points to non-existent element for:",
DOMCompat::getOuterHTML( $editedNode )
);