Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django-debug-toolbar is suppressing logging #1078

Closed
ovalseven8 opened this issue Aug 17, 2018 · 1 comment
Closed

django-debug-toolbar is suppressing logging #1078

ovalseven8 opened this issue Aug 17, 2018 · 1 comment

Comments

@ovalseven8
Copy link

ovalseven8 commented Aug 17, 2018

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

@ovalseven8 ovalseven8 reopened this Aug 19, 2018
@ovalseven8 ovalseven8 changed the title Conflict between django-debug-toolbar and huey django-debug-toolbar is suppressing logging Aug 19, 2018
@ovalseven8
Copy link
Author

Turns out there is an issue already: #695 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant