comparison Plugin/PluginContext.cpp @ 17:7d56105ab084

improved logging
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Mar 2019 10:07:29 +0100
parents 34b1875c8e3a
children b06103a50c95
comparison
equal deleted inserted replaced
16:2452e15d7746 17:7d56105ab084
36 targetBucketSize_(targetBucketSize), 36 targetBucketSize_(targetBucketSize),
37 maxHttpRetries_(maxHttpRetries) 37 maxHttpRetries_(maxHttpRetries)
38 { 38 {
39 cache_.SetMaxMemorySize(memoryCacheSize); 39 cache_.SetMaxMemorySize(memoryCacheSize);
40 40
41 LOG(INFO) << "Transfers accelerator will use " << threadsCount << " threads to run HTTP queries"; 41 LOG(INFO) << "Transfers accelerator will use " << threadsCount_ << " thread(s) to run HTTP queries";
42 LOG(INFO) << "Transfers accelerator will use keep local DICOM files in a memory cache of size: " 42 LOG(INFO) << "Transfers accelerator will use keep local DICOM files in a memory cache of size: "
43 << OrthancPlugins::ConvertToMegabytes(memoryCacheSize) << " MB"; 43 << OrthancPlugins::ConvertToMegabytes(memoryCacheSize) << " MB";
44 LOG(INFO) << "Transfers accelerator will aim at HTTP queries of size: " 44 LOG(INFO) << "Transfers accelerator will aim at HTTP queries of size: "
45 << OrthancPlugins::ConvertToKilobytes(targetBucketSize) << " KB"; 45 << OrthancPlugins::ConvertToKilobytes(targetBucketSize_) << " KB";
46 LOG(INFO) << "Transfers accelerator will be able to receive up to " 46 LOG(INFO) << "Transfers accelerator will be able to receive up to "
47 << maxPushTransactions << " push transactions at once"; 47 << maxPushTransactions << " push transaction(s) at once";
48 48 LOG(INFO) << "Transfers accelerator will retry "
49 << maxHttpRetries_ << " time(s) if some HTTP query fails";
49 } 50 }
50 51
51 52
52 std::auto_ptr<PluginContext>& PluginContext::GetSingleton() 53 std::auto_ptr<PluginContext>& PluginContext::GetSingleton()
53 { 54 {