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