|
@@ -77,7 +77,7 @@ class PythonExecutor:
|
|
|
|
|
|
script_params += [tmpstructedoutfile, logger_level, tmp_dir]
|
|
|
pythonCommand = self.python_command(script, script_params)
|
|
|
- logger.info("Running command " + pprint.pformat(pythonCommand))
|
|
|
+ logger.debug("Running command " + pprint.pformat(pythonCommand))
|
|
|
if handle is None:
|
|
|
tmpout, tmperr = self.open_subprocess_files(tmpoutfile, tmperrfile, override_output_files)
|
|
|
|
|
@@ -111,7 +111,7 @@ class PythonExecutor:
|
|
|
(" after waiting %s secs" % str(timeout) if timeout else "")
|
|
|
returncode = 999
|
|
|
result = self.condenseOutput(out, error, returncode, structured_out)
|
|
|
- logger.info("Result: %s" % result)
|
|
|
+ logger.debug("Result: %s" % result)
|
|
|
return result
|
|
|
|
|
|
def read_result_from_files(self, out_path, err_path, structured_out_path):
|
|
@@ -197,10 +197,10 @@ class BackgroundThread(threading.Thread):
|
|
|
def run(self):
|
|
|
process_out, process_err = self.pythonExecutor.open_subprocess_files(self.holder.out_file, self.holder.err_file, True)
|
|
|
|
|
|
- logger.info("Starting process command %s" % self.holder.command)
|
|
|
+ logger.debug("Starting process command %s" % self.holder.command)
|
|
|
process = self.pythonExecutor.launch_python_subprocess(self.holder.command, process_out, process_err)
|
|
|
|
|
|
- logger.info("Process has been started. Pid = %s" % process.pid)
|
|
|
+ logger.debug("Process has been started. Pid = %s" % process.pid)
|
|
|
|
|
|
self.holder.handle.pid = process.pid
|
|
|
self.holder.handle.status = BackgroundCommandExecutionHandle.RUNNING_STATUS
|
|
@@ -210,6 +210,6 @@ class BackgroundThread(threading.Thread):
|
|
|
|
|
|
self.holder.handle.exitCode = process.returncode
|
|
|
process_condensed_result = self.pythonExecutor.prepare_process_result(process, self.holder.out_file, self.holder.err_file, self.holder.structured_out_file)
|
|
|
- logger.info("Calling callback with args %s" % process_condensed_result)
|
|
|
+ logger.debug("Calling callback with args %s" % process_condensed_result)
|
|
|
self.holder.handle.on_background_command_complete_callback(process_condensed_result, self.holder.handle)
|
|
|
- logger.info("Exiting from thread for holder pid %s" % self.holder.handle.pid)
|
|
|
+ logger.debug("Exiting from thread for holder pid %s" % self.holder.handle.pid)
|