diff Google/GoogleStoragePlugin.cpp @ 79:16514270d9ca

fix
author Alain Mazy <am@osimis.io>
date Fri, 14 Oct 2022 16:22:26 +0200
parents d7295e8678d7
children b3787f4aa16a
line wrap: on
line diff
--- a/Google/GoogleStoragePlugin.cpp	Fri Oct 14 11:00:18 2022 +0200
+++ b/Google/GoogleStoragePlugin.cpp	Fri Oct 14 16:22:26 2022 +0200
@@ -36,7 +36,8 @@
 
 public:
 
-  GoogleStoragePlugin(const std::string& bucketName,
+  GoogleStoragePlugin(const std::string& nameForLogs, 
+                      const std::string& bucketName,
                       google::cloud::storage::Client& mainClient,
                       bool enableLegacyStorageStructure,
                       bool storageContainsUnknownFiles
@@ -234,7 +235,7 @@
   return "Google Cloud Storage";
 }
 
-IStorage* GoogleStoragePluginFactory::CreateStorage(const OrthancPlugins::OrthancConfiguration& orthancConfig)
+IStorage* GoogleStoragePluginFactory::CreateStorage(const std::string& nameForLogs, const OrthancPlugins::OrthancConfiguration& orthancConfig)
 {
   bool enableLegacyStorageStructure;
   bool storageContainsUnknownFiles;
@@ -285,11 +286,11 @@
     return nullptr;
   }
 
-  return new GoogleStoragePlugin(googleBucketName, mainClient.value(), enableLegacyStorageStructure, storageContainsUnknownFiles);
+  return new GoogleStoragePlugin(nameForLogs, googleBucketName, mainClient.value(), enableLegacyStorageStructure, storageContainsUnknownFiles);
 }
 
-GoogleStoragePlugin::GoogleStoragePlugin(const std::string &bucketName, google::cloud::storage::Client& mainClient, bool enableLegacyStorageStructure, bool storageContainsUnknownFiles)
-  : BaseStorage(enableLegacyStorageStructure),
+GoogleStoragePlugin::GoogleStoragePlugin(const std::string& nameForLogs, const std::string &bucketName, google::cloud::storage::Client& mainClient, bool enableLegacyStorageStructure, bool storageContainsUnknownFiles)
+  : BaseStorage(nameForLogs, enableLegacyStorageStructure),
     bucketName_(bucketName),
     mainClient_(mainClient),
     storageContainsUnknownFiles_(storageContainsUnknownFiles)