Group Swift metadata errors by making $path a parameter
authorChad Horohoe <chadh@wikimedia.org>
Thu, 26 Oct 2017 17:33:42 +0000 (10:33 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Thu, 26 Oct 2017 17:33:42 +0000 (10:33 -0700)
Change-Id: I3beb3743e1d13b06a9110c44f84fdc8d1b193137

includes/libs/filebackend/SwiftFileBackend.php

index 4212ff5..e54e8da 100644 (file)
@@ -714,7 +714,8 @@ class SwiftFileBackend extends FileBackendStore {
 
                /** @noinspection PhpUnusedLocalVariableInspection */
                $ps = $this->scopedProfileSection( __METHOD__ . "-{$this->name}" );
-               $this->logger->error( __METHOD__ . ": $path was not stored with SHA-1 metadata." );
+               $this->logger->error( __METHOD__ . ": {path} was not stored with SHA-1 metadata.",
+                       [ 'path' => $path ] );
 
                $objHdrs['x-object-meta-sha1base36'] = false;