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

Disable django.security.DisallowedHost from logging #4879

Merged
merged 2 commits into from
Nov 8, 2018
Merged

Disable django.security.DisallowedHost from logging #4879

merged 2 commits into from
Nov 8, 2018

Conversation

dojutsu-user
Copy link
Member

Fixes #4791

@codecov
Copy link

codecov bot commented Nov 8, 2018

Codecov Report

Merging #4879 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4879   +/-   ##
=======================================
  Coverage   76.64%   76.64%           
=======================================
  Files         158      158           
  Lines       10054    10054           
  Branches     1271     1271           
=======================================
  Hits         7706     7706           
  Misses       2007     2007           
  Partials      341      341

@dojutsu-user
Copy link
Member Author

@humitos
Please review.

Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks good to me :)

@ericholscher ericholscher merged commit e3badfe into readthedocs:master Nov 8, 2018
@ericholscher
Copy link
Member

Thanks!

@dojutsu-user dojutsu-user deleted the disable-allowed-host-logging branch December 12, 2018 11:11
@shahwan42
Copy link

I faced the same problem and google led me to here... if anybody is facing the same issue and have the correct config, like me, try to add this

"django.security.DisallowedHost": {
            "handlers": ["null"],
            "propagate": False,
        },

as the first element in the loggers dict

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

Successfully merging this pull request may close these issues.

Disable django.security.DisallowedHost from logging
4 participants