Skip to content

django-debug-toolbar is suppressing logging #1078

Closed
@ovalseven8

Description

@ovalseven8

Today, I noticed that there is some conflict between django-debug-toolbar and huey.

In general, when you run manage.py run_huey you get immeditately some output like

[2018-08-17 17:47:25,040] INFO:huey.consumer:MainThread:Huey consumer started with 1 thread, PID 2389
[2018-08-17 17:47:25,041] INFO:huey.consumer:MainThread:Scheduler runs every 1 second(s).
[2018-08-17 17:47:25,041] INFO:huey.consumer:MainThread:Periodic tasks are enabled.
[2018-08-17 17:47:25,041] INFO:huey.consumer:MainThread:UTC is enabled.
...

Now, add this to your settings file:

INSTALLED_APPS += [
    'debug_toolbar',
]

MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ]

And suddenly when you run manage.py run_huey again, you do not get any output at all:

python manage.py run_huey

System information

Django 2.1
Python 3.7
Huey 1.10.2
Django Debug Toolbar 1.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions