diff --git a/Math.hooks.php b/Math.hooks.php index b54684a29..895e785b7 100644 --- a/Math.hooks.php +++ b/Math.hooks.php @@ -202,7 +202,7 @@ class MathHooks { } if ( $renderer->render() ) { - LoggerFactory::getInstance( 'Math' )->info( "Rendering successful. Writing output" ); + LoggerFactory::getInstance( 'Math' )->debug( "Rendering successful. Writing output" ); $renderedMath = $renderer->getHtmlOutput(); } else { LoggerFactory::getInstance( 'Math' )->warning( diff --git a/MathRenderer.php b/MathRenderer.php index ddcbc1271..0b49f1200 100644 --- a/MathRenderer.php +++ b/MathRenderer.php @@ -165,7 +165,7 @@ abstract class MathRenderer { default: $renderer = new MathMathML( $tex, $params ); } - LoggerFactory::getInstance( 'Math' )->info( 'Start rendering $' . $renderer->tex . + LoggerFactory::getInstance( 'Math' )->debug( 'Start rendering $' . $renderer->tex . '$ in mode ' . $mode ); return $renderer; } @@ -322,7 +322,7 @@ abstract class MathRenderer { # Now save it back to the DB: if ( !wfReadOnly() ) { $dbw = $dbw ?: wfGetDB( DB_MASTER ); - LoggerFactory::getInstance( 'Math' )->info( 'Store entry for $' . $this->tex . + LoggerFactory::getInstance( 'Math' )->debug( 'Store entry for $' . $this->tex . '$ in database (hash:' . $this->getMd5() . ')' ); $outArray = $this->dbOutArray(); $method = __METHOD__; diff --git a/MathRestbaseInterface.php b/MathRestbaseInterface.php index e0d568067..3ee88db87 100644 --- a/MathRestbaseInterface.php +++ b/MathRestbaseInterface.php @@ -116,7 +116,7 @@ class MathRestbaseInterface { return true; } else { $res = $response['body']; - $this->log()->debug( 'Tex check failed:', array( + $this->log()->info( 'Tex check failed:', array( 'post' => $post, 'error' => $response['error'], 'url' => $request['url'] diff --git a/MathTexvc.php b/MathTexvc.php index 3233858fb..514a512c1 100644 --- a/MathTexvc.php +++ b/MathTexvc.php @@ -46,7 +46,7 @@ class MathTexvc extends MathRenderer { $out['math_html'] = $this->html; $out['math_mathml'] = utf8_encode( $this->getMathml() ); $out['math_inputhash'] = $this->getInputHash(); - LoggerFactory::getInstance( 'Math' )->info( 'Store Hashpath of image' . + LoggerFactory::getInstance( 'Math' )->debug( 'Store Hashpath of image' . bin2hex( $outmd5_sql ) ); return $out; } @@ -68,7 +68,7 @@ class MathTexvc extends MathRenderer { $xhash = unpack( 'H32md5', $dbr->decodeBlob( $rpage->math_outputhash ) . " " ); $this->hash = $xhash['md5']; - LoggerFactory::getInstance( 'Math' )->info( 'Hashpath of PNG-File:' . + LoggerFactory::getInstance( 'Math' )->debug( 'Hashpath of PNG-File:' . bin2hex( $this->hash ) ); $this->conservativeness = $rpage->math_html_conservativeness; $this->html = $rpage->math_html;