mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Commit
This commit is contained in:
parent
4b41766312
commit
ae865d1de1
@ -83,9 +83,7 @@ class QueryCountMiddleware(object):
|
||||
a=total_time,
|
||||
b=(t_stop - t_start)))
|
||||
|
||||
"""
|
||||
for x in sorted(queries.items(), key=operator.itemgetter(1), reverse=True):
|
||||
print(x[0], ':', x[1])
|
||||
"""
|
||||
|
||||
return response
|
||||
|
@ -82,17 +82,19 @@ LOGGING = {
|
||||
'level': 'DEBUG',
|
||||
'class': 'logging.StreamHandler',
|
||||
},
|
||||
'file': {
|
||||
'debug_file': {
|
||||
'level': 'DEBUG',
|
||||
'class': 'logging.FileHandler',
|
||||
'filename': './debug.log',
|
||||
'filename': os.path.join(BASE_DIR, 'debug.log'),
|
||||
#'maxBytes': 1024*1024*15, # 15MB
|
||||
#'backupCount': 10,
|
||||
},
|
||||
},
|
||||
|
||||
'loggers': {
|
||||
'ddjango.db.backends': {
|
||||
'level': 'DEBUG',
|
||||
'handlers': ['file'],
|
||||
'handlers': ['debug_file', 'console',],
|
||||
'propagate': True
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user