Remove defunct "log_queries" option

This commit is contained in:
Oliver Walters 2020-08-15 19:52:04 +10:00
parent b8b3a933ab
commit 2bb669d7de
3 changed files with 2 additions and 8 deletions

View File

@ -91,6 +91,8 @@ class QueryCountMiddleware(object):
To enable this middleware, set 'log_queries: True' in the local InvenTree config file.
Reference: https://www.dabapps.com/blog/logging-sql-queries-django-13/
Note: 2020-08-15 - This is no longer used, instead we now rely on the django-debug-toolbar addon
"""
def __init__(self, get_response):

View File

@ -182,9 +182,6 @@ if DEBUG and CONFIG.get('debug_toolbar', False):
INSTALLED_APPS.append('debug_toolbar')
MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')
if CONFIG.get('log_queries', False):
MIDDLEWARE.append('InvenTree.middleware.QueryCountMiddleware')
ROOT_URLCONF = 'InvenTree.urls'
TEMPLATES = [

View File

@ -63,11 +63,6 @@ static_root: '../inventree_static'
# and only if InvenTree is accessed from a local IP (127.0.0.1)
debug_toolbar: False
# Logging options
# If debug mode is enabled, set log_queries to True to show aggregate database queries in the debug console
# TODO - Remove me!
log_queries: False
# Backup options
# Set the backup_dir parameter to store backup files in a specific location
# If unspecified, the local user's temp directory will be used