Log slightly more information when debugging

This commit is contained in:
tcely 2025-06-15 14:48:20 -04:00 committed by GitHub
parent bbf68517af
commit f6b589bbb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,12 +57,16 @@ DJANGO_HUEY = {
'limited': sqlite_tasks('limited', prefix='net'),
'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():
connection = django_huey_queue.get('connection')
if connection:
filepath = Path('/.' + connection.get('filename') or '').resolve(strict=False)
filepath.parent.mkdir(exist_ok=True, parents=True)
consumer = django_huey_queue.get('consumer')
if consumer:
consumer['verbose'] = DJANGO_HUEY.get('verbose', False)
TEMPLATES = [