changeset 2685:6801f99bbc2f jobs

Configuration option "LogExportedResources" is now "false" by default
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 27 Jun 2018 15:09:11 +0200
parents b53cefe3901c
children fb2d89acc2d1
files NEWS OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Resources/CMake/OrthancFrameworkConfiguration.cmake Resources/Configuration.json
diffstat 4 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Thu Jun 21 09:32:42 2018 +0200
+++ b/NEWS	Wed Jun 27 15:09:11 2018 +0200
@@ -38,6 +38,7 @@
 
 * Fix generation of DICOMDIR if PatientID is empty
 * Fix issue 25 (Deadlock with Lua scripts): The event queue is now implemented for Lua
+* Configuration option "LogExportedResources" is now "false" by default
 * Upgraded dependencies for static and Windows builds:
   - boost 1.67.0
 
--- a/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp	Thu Jun 21 09:32:42 2018 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp	Wed Jun 27 15:09:11 2018 +0200
@@ -677,7 +677,7 @@
         return false;
       }
 
-      if (Configuration::GetGlobalBoolParameter("LogExportedResources", true))
+      if (Configuration::GetGlobalBoolParameter("LogExportedResources", false))
       {
         context.GetIndex().LogExportedResource(stripped, remote);
       }
--- a/Resources/CMake/OrthancFrameworkConfiguration.cmake	Thu Jun 21 09:32:42 2018 +0200
+++ b/Resources/CMake/OrthancFrameworkConfiguration.cmake	Wed Jun 27 15:09:11 2018 +0200
@@ -84,6 +84,7 @@
 
 if (NOT ENABLE_LUA)
   unset(USE_SYSTEM_LUA CACHE)
+  unset(ENABLE_LUA_MODULES CACHE)
   add_definitions(-DORTHANC_ENABLE_LUA=0)
 endif()
 
--- a/Resources/Configuration.json	Thu Jun 21 09:32:42 2018 +0200
+++ b/Resources/Configuration.json	Wed Jun 27 15:09:11 2018 +0200
@@ -300,11 +300,13 @@
   // some job finishes.
   "LimitJobs" : 10,
 
-  // If this option is set to "false", Orthanc will not log the
-  // resources that are exported to other DICOM modalities of Orthanc
-  // peers in the URI "/exports". This is useful to prevent the index
-  // to grow indefinitely in auto-routing tasks.
-  "LogExportedResources" : true,
+  // If this option is set to "true" (default behavior until Orthanc
+  // 1.3.2), Orthanc will log the resources that are exported to other
+  // DICOM modalities or Orthanc peers, inside the URI
+  // "/exports". Setting this option to "false" is useful to prevent
+  // the index to grow indefinitely in auto-routing tasks (this is the
+  // default behavior since Orthanc 1.4.0).
+  "LogExportedResources" : false,
 
   // Enable or disable HTTP Keep-Alive (deprecated). Set this option
   // to "true" only in the case of high HTTP loads.