mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove defunct "log_queries" option
This commit is contained in:
parent
b8b3a933ab
commit
2bb669d7de
@ -91,6 +91,8 @@ class QueryCountMiddleware(object):
|
|||||||
To enable this middleware, set 'log_queries: True' in the local InvenTree config file.
|
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/
|
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):
|
def __init__(self, get_response):
|
||||||
|
@ -182,9 +182,6 @@ if DEBUG and CONFIG.get('debug_toolbar', False):
|
|||||||
INSTALLED_APPS.append('debug_toolbar')
|
INSTALLED_APPS.append('debug_toolbar')
|
||||||
MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')
|
MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')
|
||||||
|
|
||||||
if CONFIG.get('log_queries', False):
|
|
||||||
MIDDLEWARE.append('InvenTree.middleware.QueryCountMiddleware')
|
|
||||||
|
|
||||||
ROOT_URLCONF = 'InvenTree.urls'
|
ROOT_URLCONF = 'InvenTree.urls'
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
|
@ -63,11 +63,6 @@ static_root: '../inventree_static'
|
|||||||
# and only if InvenTree is accessed from a local IP (127.0.0.1)
|
# and only if InvenTree is accessed from a local IP (127.0.0.1)
|
||||||
debug_toolbar: False
|
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
|
# Backup options
|
||||||
# Set the backup_dir parameter to store backup files in a specific location
|
# Set the backup_dir parameter to store backup files in a specific location
|
||||||
# If unspecified, the local user's temp directory will be used
|
# If unspecified, the local user's temp directory will be used
|
||||||
|
Loading…
Reference in New Issue
Block a user