Merge pull request #1158 from jumpserver/dev

bugfix for celery log path
pull/1181/merge
老广 2018-04-03 14:50:49 +08:00 committed by GitHub
commit 82d06351e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -33,4 +33,6 @@ class CeleryTask(models.Model):
@property
def full_log_path(self):
if not self.log_path:
return None
return os.path.join(self.LOG_DIR, self.log_path)