Mercurial > hg > orthanc-databases
comparison Framework/Plugins/StorageBackend.cpp @ 270:5931c2ff22ca
improved log
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 21 Apr 2021 17:56:43 +0200 |
parents | 567761f0c1ea |
children | 6b18d3fbee82 |
comparison
equal
deleted
inserted
replaced
269:567761f0c1ea | 270:5931c2ff22ca |
---|---|
671 | 671 |
672 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 | 672 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 |
673 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 0) | 673 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 0) |
674 if (OrthancPluginCheckVersionAdvanced(context, 1, 9, 0) == 1) | 674 if (OrthancPluginCheckVersionAdvanced(context, 1, 9, 0) == 1) |
675 { | 675 { |
676 LOG(WARNING) << "The storage area plugin will retry up to " << backend_->GetMaxRetries() | |
677 << " time(s) in the case of a collision"; | |
678 | |
679 OrthancPluginStorageReadRange readRange = NULL; | 676 OrthancPluginStorageReadRange readRange = NULL; |
680 if (backend_->HasReadRange()) | 677 if (backend_->HasReadRange()) |
681 { | 678 { |
682 readRange = StorageReadRange; | 679 readRange = StorageReadRange; |
683 } | 680 } |
691 if (!hasLoadedV2) | 688 if (!hasLoadedV2) |
692 { | 689 { |
693 LOG(WARNING) << "Performance warning: Your version of the Orthanc core doesn't support reading of file ranges"; | 690 LOG(WARNING) << "Performance warning: Your version of the Orthanc core doesn't support reading of file ranges"; |
694 OrthancPluginRegisterStorageArea(context_, StorageCreate, StorageRead, StorageRemove); | 691 OrthancPluginRegisterStorageArea(context_, StorageCreate, StorageRead, StorageRemove); |
695 } | 692 } |
693 | |
694 LOG(WARNING) << "The storage area plugin will retry up to " << backend_->GetMaxRetries() | |
695 << " time(s) in the case of a collision"; | |
696 } | 696 } |
697 } | 697 } |
698 | 698 |
699 | 699 |
700 void StorageBackend::Finalize() | 700 void StorageBackend::Finalize() |