filebackend: Fix undefined 'req_params' context in FileOperation log
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 19 May 2018 23:39:36 +0000 (01:39 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Sat, 19 May 2018 23:39:36 +0000 (01:39 +0200)
Follows-up 9d49075b38. Noticed various log messages on Beta Cluster
from this code path that used "{params}" even in the real messages
(not normalised). Turned out, it isn't being defined due to a typo.

Change-Id: Ib9cf644fdf413035504d9d7486696cffa7737d4a

includes/libs/filebackend/SwiftFileBackend.php

index 5695d82..997974e 100644 (file)
@@ -1811,7 +1811,7 @@ class SwiftFileBackend extends FileBackendStore {
                if ( $code == 401 ) { // possibly a stale token
                        $this->srvCache->delete( $this->getCredsCacheKey( $this->swiftUser ) );
                }
                if ( $code == 401 ) { // possibly a stale token
                        $this->srvCache->delete( $this->getCredsCacheKey( $this->swiftUser ) );
                }
-               $msg = "HTTP {code} ({desc}) in '{func}' (given '{params}')";
+               $msg = "HTTP {code} ({desc}) in '{func}' (given '{req_params}')";
                $msgParams = [
                        'code'   => $code,
                        'desc'   => $desc,
                $msgParams = [
                        'code'   => $code,
                        'desc'   => $desc,