For more context, see T301764: Fix error logging in TranslateRenderJob.
To summarize, the following code silently fails to log an error message:
if ( !$editStatus->isOK() ) {
$this->logError(
'Error while editing content in page.',
[
'content' => $content,
'errors' => $editStatus->getErrors()
]
);
}I assume the error is that $content is an object and not a primitive.
PS: $this->logError is just wrapper:
protected function logError( $msg, $context = [] ) {
LoggerFactory::getInstance( self::CHANNEL_NAME )->error( $this->getLogPrefix() . $msg, $context );
}Expected behavior: Failure to log is explicit, either via an exception or a log message about failure to log.