Skip to content

Commit

Permalink
fix debug log check
Browse files Browse the repository at this point in the history
  • Loading branch information
ApexArray committed Oct 31, 2023
1 parent ec04ee2 commit 6cdeeea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def get_bool(key, default):
}
}

if not get_bool('DISABLE_DEBUG_QUERY_LOGGING', False):
if DEBUG and not get_bool('DISABLE_DEBUG_QUERY_LOGGING', False):
LOGGING['loggers']['django.db.backends'] = {
'level': 'DEBUG',
'handlers': ['console_debug'],
Expand Down

0 comments on commit 6cdeeea

Please sign in to comment.