Skip to content

Commit

Permalink
Merge pull request #187 from rapidpro/disable_disallowedhost_exceptions
Browse files Browse the repository at this point in the history
Disable exception reporting for DisallowedHost
  • Loading branch information
rowanseymour committed Nov 9, 2016
2 parents d05ddd8 + 9774b5f commit 5006f31
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion casepro/settings_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'verbose'
}
},
'null': {
'class': 'logging.NullHandler',
},
},
'loggers': {
'httprouterthread': {
Expand All @@ -239,6 +242,10 @@
'handlers': ['console'],
'propagate': False,
},
'django.security.DisallowedHost': {
'handlers': ['null'],
'propagate': False,
},
}
}

Expand Down

0 comments on commit 5006f31

Please sign in to comment.