From: Aaron Schulz Date: Thu, 16 Feb 2012 18:22:09 +0000 (+0000) Subject: Improve error log formatting and added error message info for InvalidResponseException X-Git-Tag: 1.31.0-rc.0~24666 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=736b978ede727b95cb76572ce9e61fd24ed16e95;p=lhc%2Fweb%2Fwiklou.git Improve error log formatting and added error message info for InvalidResponseException --- diff --git a/includes/filerepo/backend/SwiftFileBackend.php b/includes/filerepo/backend/SwiftFileBackend.php index e2c5986801..734a06a395 100644 --- a/includes/filerepo/backend/SwiftFileBackend.php +++ b/includes/filerepo/backend/SwiftFileBackend.php @@ -807,7 +807,11 @@ class SwiftFileBackend extends FileBackendStore { */ protected function logException( Exception $e, $func, array $params ) { wfDebugLog( 'SwiftBackend', - get_class( $e ) . " in '{$this->name}': '{$func}' with " . serialize( $params ) + get_class( $e ) . " in '{$func}' (given '" . serialize( $params ) . "')" . + ( $e instanceof InvalidResponseException + ? ": {$e->getMessage()}" + : "" + ) ); } }