Log when resyncFiles() fails in FileBackendMultiWrite
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 29 Apr 2016 19:16:07 +0000 (12:16 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 29 Apr 2016 19:16:13 +0000 (12:16 -0700)
This distinguishes cases that recover from sync errors
from those that do not.

Change-Id: Ibcdea18041e7344077c8308359a1a6087139f2e0

includes/filebackend/FileBackendMultiWrite.php

index c432025..3b20048 100644 (file)
@@ -385,6 +385,11 @@ class FileBackendMultiWrite extends FileBackend {
                        }
                }
 
+               if ( !$status->isOK() ) {
+                       wfDebugLog( 'FileOperation', get_class( $this ) .
+                               " failed to resync: " . FormatJson::encode( $paths ) );
+               }
+
                return $status;
        }