Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -365,7 +365,6 @@ |
366 | 366 | $response = FormatJson::decode( $json ); |
367 | 367 | |
368 | 368 | if ( $json === false ) { |
369 | | - error_log( __METHOD__ . ': Http::get failed' ); |
370 | 369 | // Most likely a timeout or other general error |
371 | 370 | self::reportTranslationServiceFailure( $serviceName ); |
372 | 371 | |
— | — | @@ -466,7 +465,9 @@ |
467 | 466 | return null; |
468 | 467 | } |
469 | 468 | |
470 | | - error_log( __METHOD__ . ': Http::get failed:' . $error ); |
| 469 | + if ( $error ) { |
| 470 | + error_log( __METHOD__ . ': Http::get failed:' . $error ); |
| 471 | + } |
471 | 472 | // Most likely a timeout or other general error |
472 | 473 | self::reportTranslationServiceFailure( $serviceName ); |
473 | 474 | return null; |