mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-19 03:26:36 +00:00
Log slightly more information when debugging
This commit is contained in:
parent
bbf68517af
commit
f6b589bbb0
@ -57,12 +57,16 @@ DJANGO_HUEY = {
|
|||||||
'limited': sqlite_tasks('limited', prefix='net'),
|
'limited': sqlite_tasks('limited', prefix='net'),
|
||||||
'network': sqlite_tasks('network'),
|
'network': sqlite_tasks('network'),
|
||||||
},
|
},
|
||||||
|
'verbose': None if 'true' == getenv('TUBESYNC_DEBUG', False).strip().lower() else False,
|
||||||
}
|
}
|
||||||
for django_huey_queue in DJANGO_HUEY['queues'].values():
|
for django_huey_queue in DJANGO_HUEY['queues'].values():
|
||||||
connection = django_huey_queue.get('connection')
|
connection = django_huey_queue.get('connection')
|
||||||
if connection:
|
if connection:
|
||||||
filepath = Path('/.' + connection.get('filename') or '').resolve(strict=False)
|
filepath = Path('/.' + connection.get('filename') or '').resolve(strict=False)
|
||||||
filepath.parent.mkdir(exist_ok=True, parents=True)
|
filepath.parent.mkdir(exist_ok=True, parents=True)
|
||||||
|
consumer = django_huey_queue.get('consumer')
|
||||||
|
if consumer:
|
||||||
|
consumer['verbose'] = DJANGO_HUEY.get('verbose', False)
|
||||||
|
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
|
Loading…
Reference in New Issue
Block a user