Skip to content

Commit

Permalink
moved log inside the if condition to avoid confusion when job doesn't…
Browse files Browse the repository at this point in the history
… run. #200
  • Loading branch information
Shivam Pandey committed Apr 3, 2018
1 parent 50a901b commit d19f3e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grails-app/jobs/com/causecode/fileuploader/DailyJob.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ class DailyJob {
}

def execute() {
log.info 'Started executing DailyJob..'

boolean renewJobDisabled = Holders.config.jobs.fileUploader.renewURLs.disable ?: false

if (!renewJobDisabled) {
log.info 'Started executing DailyJob..'

fileUploaderService.renewTemporaryURL()
fileUploaderService.moveFailedFilesToCDN()

log.info 'Finished executing DailyJob.'
}

Expand Down

0 comments on commit d19f3e3

Please sign in to comment.