Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestModalities.cpp @ 1142:952cf9b6be83
Configuration option to disable the logging of exported resources
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Sep 2014 10:23:22 +0200 |
parents | 0332e6e8c679 |
children | 0561f2087cc9 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Thu Sep 11 10:00:46 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Thu Sep 11 10:23:22 2014 +0200 @@ -292,7 +292,11 @@ if (request.isString()) { - context.GetIndex().LogExportedResource(request.asString(), remote); + if (Configuration::GetGlobalBoolParameter("LogExportedResources", true)) + { + context.GetIndex().LogExportedResource(request.asString(), remote); + } + context.GetIndex().GetChildInstances(instances, request.asString()); } else if (request.isArray()) @@ -310,7 +314,10 @@ return false; } - context.GetIndex().LogExportedResource(stripped, remote); + if (Configuration::GetGlobalBoolParameter("LogExportedResources", true)) + { + context.GetIndex().LogExportedResource(stripped, remote); + } std::list<std::string> tmp; context.GetIndex().GetChildInstances(tmp, stripped);