diff OrthancServer/ServerContext.cpp @ 2925:a80ba85d89e6

Orthanc starts even if jobs from a previous execution cannot be unserialized
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 09 Nov 2018 09:46:21 +0100
parents e5e3253a1164
children 4767d36679ed
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Fri Nov 09 09:06:46 2018 +0100
+++ b/OrthancServer/ServerContext.cpp	Fri Nov 09 09:46:21 2018 +0100
@@ -170,8 +170,7 @@
         }
         catch (OrthancException& e)
         {
-          LOG(ERROR) << "Cannot unserialize the jobs engine: " << e.What();
-          throw;
+          LOG(WARNING) << "Cannot unserialize the jobs engine, starting anyway: " << e.What();
         }
       }
       else
@@ -181,11 +180,9 @@
     }
     else
     {
-      LOG(WARNING) << "Not reloading the jobs from the last execution of Orthanc";
+      LOG(INFO) << "Not reloading the jobs from the last execution of Orthanc";
     }
 
-    //jobsEngine_.GetRegistry().SetMaxCompleted   // TODO
-
     jobsEngine_.GetRegistry().SetObserver(*this);
     jobsEngine_.Start();
     isJobsEngineUnserialized_ = true;