Storage: small fixes to 'storage move'

- stop command if current storage backend is still "legacy"
- write destination backend name in log
This commit is contained in:
fabrixxm 2021-03-12 18:24:45 +01:00
parent a41c657790
commit a861eb65af
2 changed files with 6 additions and 1 deletions

View file

@ -305,7 +305,7 @@ class StorageManager
$data = $source->get($sourceRef);
}
$this->logger->info('Save data to new backend.', ['newBackend' => $destination]);
$this->logger->info('Save data to new backend.', ['newBackend' => $destination::getName()]);
$destinationRef = $destination->put($data);
$this->logger->info('Saved data.', ['newReference' => $destinationRef]);