debug log was attempting to show a Blob object

A wfDebugLog() was attempting to concatenate a string with a Blob object
which does not support conversion to a string.  Since that was used to
show some hash, display the current string hash instead.
Furthermore the input-hash, which can be calculated from the TeX input
string was displayed, which is not very helpful. The variable hash is 
calculated by texvc and can be used to search for the rendered image in
the filesystem.

Change-Id: I9943fd51d3021bf2d62a29f33de0858803763f86
This commit is contained in:
Antoine Musso 2013-04-26 14:14:07 +02:00 committed by Physikerwelt
parent eaed42d8e4
commit 84d531cca0
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ abstract class MathRenderer {
} else {
$outmd5_sql = '';
}
wfDebugLog( "Math", 'store entry for $' . $this->tex . '$ in database (hash:' . $this->getInputHash() . ')\n' );
wfDebugLog( "Math", 'store entry for $' . $this->tex . '$ in database (hash:' . $this->hash . ')\n' );
$dbw->replace(
'math',
array( 'math_inputhash' ),