comparison OrthancFramework/Sources/FileStorage/FilesystemStorage.cpp @ 5736:264d84c1936a

fix
author Alain Mazy <am@orthanc.team>
date Tue, 30 Jul 2024 06:06:21 +0200
parents bdbaccc06e98
children 2fe77dfe0466
comparison
equal deleted inserted replaced
5735:0ca3e7c86b5d 5736:264d84c1936a
176 } 176 }
177 177
178 try 178 try
179 { 179 {
180 SystemToolbox::WriteFile(content, size, path.string(), fsyncOnWrite_); 180 SystemToolbox::WriteFile(content, size, path.string(), fsyncOnWrite_);
181
182 LOG(INFO) << "Created attachment \"" << uuid << "\" (" << timer.GetHumanTransferSpeed(true, size) << ")";
183 return;
181 } 184 }
182 catch (OrthancException& ex) 185 catch (OrthancException& ex)
183 { 186 {
184 if (retryCount >= maxRetryCount) 187 if (retryCount >= maxRetryCount)
185 { 188 {
186 throw ex; 189 throw ex;
187 } 190 }
188 } 191 }
189 } 192 }
190
191 LOG(INFO) << "Created attachment \"" << uuid << "\" (" << timer.GetHumanTransferSpeed(true, size) << ")";
192 } 193 }
193 194
194 195
195 IMemoryBuffer* FilesystemStorage::Read(const std::string& uuid, 196 IMemoryBuffer* FilesystemStorage::Read(const std::string& uuid,
196 FileContentType type) 197 FileContentType type)