comparison Common/BaseStorage.cpp @ 152:d62f52be1943

use Orthanc frameworking for logging
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Jun 2024 11:22:57 +0200
parents 3c7e0374f28e
children
comparison
equal deleted inserted replaced
151:00cd1f01dd5d 152:d62f52be1943
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 21
22 #include "BaseStorage.h" 22 #include "BaseStorage.h"
23
24 #include <Logging.h>
25
23 #include <boost/filesystem/fstream.hpp> 26 #include <boost/filesystem/fstream.hpp>
24 27
25 boost::filesystem::path BaseStorage::GetOrthancFileSystemPath(const std::string& uuid, const std::string& fileSystemRootPath) 28 boost::filesystem::path BaseStorage::GetOrthancFileSystemPath(const std::string& uuid, const std::string& fileSystemRootPath)
26 { 29 {
27 boost::filesystem::path path = fileSystemRootPath; 30 boost::filesystem::path path = fileSystemRootPath;
84 else 87 else
85 { 88 {
86 enableLegacyStorageStructure = true; 89 enableLegacyStorageStructure = true;
87 if (storageStructure != "legacy") 90 if (storageStructure != "legacy")
88 { 91 {
89 OrthancPlugins::LogError("ObjectStorage/StorageStructure configuration invalid value: " + storageStructure + ", allowed values are 'flat' and 'legacy'"); 92 LOG(ERROR) << "ObjectStorage/StorageStructure configuration invalid value: " << storageStructure << ", allowed values are 'flat' and 'legacy'";
90 return false; 93 return false;
91 } 94 }
92 } 95 }
93 96
94 storageContainsUnknownFiles = pluginSection.GetBooleanValue("EnableLegacyUnknownFiles", false); 97 storageContainsUnknownFiles = pluginSection.GetBooleanValue("EnableLegacyUnknownFiles", false);