You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_logger.trace(String.format("Returning task result of process [%s] for command [%s].", processPid, commandLine));
253
+
returntask.getResult();
254
+
}
255
+
_logger.trace(String.format("Returning interpretation of process [%s] for command [%s].", processPid, commandLine));
256
+
returninterpreter.interpret(ir);
248
257
} else {
249
258
// null return exitValue apparently
259
+
_logger.trace(String.format("Process [%s] for command [%s] exited with value [%s].", processPid, commandLine,
260
+
_process.exitValue()));
250
261
returnString.valueOf(_process.exitValue());
251
262
}
252
-
} else { //process failed
263
+
} else {
264
+
_logger.warn(String.format("Execution of process [%s] for command [%s] failed.", processPid, commandLine));
253
265
break;
254
266
}
255
-
}//timeout
267
+
}
256
268
} catch (InterruptedExceptione) {
257
269
if (!_isTimeOut) {
258
-
/*
259
-
* This is not timeout, we are interrupted by others,
260
-
* continue
261
-
*/
262
-
_logger.debug("We are interrupted but it's not a timeout, just continue");
270
+
_logger.debug(String.format("Exception [%s] occurred; however, it was not a timeout. Therefore, proceeding with the execution of process [%s] for command "
@@ -294,18 +303,19 @@ public String execute(OutputInterpreter interpreter) {
294
303
error = String.valueOf(_process.exitValue());
295
304
}
296
305
297
-
if (_logger.isDebugEnabled()) {
298
-
_logger.debug(error);
299
-
}
306
+
_logger.warn(String.format("Process [%s] for command [%s] encountered the error: [%s].", processPid, commandLine, error));
307
+
300
308
returnerror;
301
309
} catch (SecurityExceptionex) {
302
-
_logger.warn("Security Exception....not running as root?", ex);
310
+
_logger.warn(String.format("Exception [%s] occurred. This may be due to an attempt of executing command [%s] as non root.", ex.getMessage(), commandLine),
0 commit comments