fixed lint errors
This commit is contained in:
parent
6d123d7509
commit
593c4acb1d
|
@ -82,9 +82,11 @@ class Command(BaseCommand):
|
||||||
# Stealth option that assigns where to pipe initial output
|
# Stealth option that assigns where to pipe initial output
|
||||||
pipe = options.get('pipe', '')
|
pipe = options.get('pipe', '')
|
||||||
if not pipe:
|
if not pipe:
|
||||||
handler_names = settings.LOGGING.get('loggers', {}).get('celery', {}).get('handlers', [])
|
handler_names = settings.LOGGING.get('loggers', {}).get('celery', {}).get(
|
||||||
|
'handlers', [])
|
||||||
if 'console' not in handler_names and 'celery' in handler_names:
|
if 'console' not in handler_names and 'celery' in handler_names:
|
||||||
logfile = settings.LOGGING.get('handlers', {}).get('celery', {}).get('filename', None)
|
logfile = settings.LOGGING.get('handlers', {}).get('celery', {}).get(
|
||||||
|
'filename', None)
|
||||||
if logfile:
|
if logfile:
|
||||||
pipe = '>> {} 2>&1'.format(logfile)
|
pipe = '>> {} 2>&1'.format(logfile)
|
||||||
pipe = pipe or ''
|
pipe = pipe or ''
|
||||||
|
|
Loading…
Reference in New Issue