From: Aaron Schulz Date: Thu, 1 Mar 2012 21:59:56 +0000 (+0000) Subject: Error log readability is nice X-Git-Tag: 1.31.0-rc.0~24438 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=a4d22c992634aeb36096ae9ccb58db7a148d3a17;p=lhc%2Fweb%2Fwiklou.git Error log readability is nice --- diff --git a/includes/filerepo/backend/FileOp.php b/includes/filerepo/backend/FileOp.php index 048a33d085..89a8796cb0 100644 --- a/includes/filerepo/backend/FileOp.php +++ b/includes/filerepo/backend/FileOp.php @@ -346,7 +346,7 @@ abstract class FileOp { $params['failedAction'] = $action; try { wfDebugLog( 'FileOperation', - get_class( $this ) . ' failed:' . serialize( $params ) ); + get_class( $this ) . ' failed:' . FormatJson::encode( $params ) ); } catch ( Exception $e ) { // bad config? debug log error? }