fix #64
This commit is contained in:
parent
5bf46c249d
commit
d57a7ae563
1 changed files with 9 additions and 4 deletions
|
@ -78,16 +78,21 @@ public class TriggeredJob implements Job {
|
|||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Starting Job " + jobId + ". scriptType: "
|
||||
+ scriptType + ", script: " + script);
|
||||
} else if (logger.isInfoEnabled()) {
|
||||
} else if (scheduledJob.isLoggingEnabled()
|
||||
&& logger.isInfoEnabled()) {
|
||||
logger.info("Starting Job " + jobId + ".");
|
||||
}
|
||||
|
||||
final Object ret = jobExecutor.execute(script);
|
||||
if (ret == null) {
|
||||
logger.info("Finished Job " + jobId + ".");
|
||||
if (scheduledJob.isLoggingEnabled() && logger.isInfoEnabled()) {
|
||||
logger.info("Finished Job " + jobId + ".");
|
||||
}
|
||||
} else {
|
||||
logger.info("Finished Job " + jobId
|
||||
+ ". The return value is:\n" + ret);
|
||||
if (scheduledJob.isLoggingEnabled() && logger.isInfoEnabled()) {
|
||||
logger.info("Finished Job " + jobId
|
||||
+ ". The return value is:\n" + ret);
|
||||
}
|
||||
jobLog.setScriptResult(ret.toString());
|
||||
}
|
||||
jobLog.setJobStatus(Constants.OK);
|
||||
|
|
Loading…
Add table
Reference in a new issue