fix #41
This commit is contained in:
parent
0119172261
commit
5e267127b2
1 changed files with 8 additions and 4 deletions
|
@ -68,11 +68,9 @@ public class TriggeredJob implements Job {
|
|||
return;
|
||||
}
|
||||
|
||||
final JobLogService jobLogService = SingletonS2Container
|
||||
.getComponent(JobLogService.class);
|
||||
try {
|
||||
if (scheduledJob.isLoggingEnabled()) {
|
||||
jobLogService.store(jobLog);
|
||||
storeJobLog(jobLog);
|
||||
}
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
|
@ -100,9 +98,15 @@ public class TriggeredJob implements Job {
|
|||
logger.debug("jobLog: " + jobLog);
|
||||
}
|
||||
if (scheduledJob.isLoggingEnabled()) {
|
||||
jobLogService.store(jobLog);
|
||||
storeJobLog(jobLog);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void storeJobLog(final JobLog jobLog) {
|
||||
final JobLogService jobLogService = SingletonS2Container
|
||||
.getComponent(JobLogService.class);
|
||||
jobLogService.store(jobLog);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue