comparison OrthancServer/ServerJobs/SystemCallOperation.cpp @ 2607:44e268605478 jobs

ModifyInstanceOperation
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 19 May 2018 15:28:41 +0200
parents f2b9d3256060
children 25225f0b4f33
comparison
equal deleted inserted replaced
2606:f2b9d3256060 2607:44e268605478
94 for (size_t i = 0; i < arguments.size(); i++) 94 for (size_t i = 0; i < arguments.size(); i++)
95 { 95 {
96 info += " " + arguments[i]; 96 info += " " + arguments[i];
97 } 97 }
98 98
99 LOG(INFO) << "Lua: System call: " << info; 99 LOG(INFO) << "Lua: System call: \"" << info << "\"";
100 100
101 try 101 try
102 { 102 {
103 SystemToolbox::ExecuteSystemCommand(command_, arguments); 103 SystemToolbox::ExecuteSystemCommand(command_, arguments);
104 104
105 // Only chain with other commands if this operation succeeds 105 // Only chain with other commands if this operation succeeds
106 outputs.Append(input.Clone()); 106 outputs.Append(input.Clone());
107 } 107 }
108 catch (OrthancException& e) 108 catch (OrthancException& e)
109 { 109 {
110 LOG(ERROR) << "Lua: Failed system call - " << info << ": " << e.What(); 110 LOG(ERROR) << "Lua: Failed system call - \"" << info << "\": " << e.What();
111 } 111 }
112 } 112 }
113 } 113 }
114 114