Browse Source

Disable logging due to not working with testing.... :(

master
Joshua Rubingh 12 months ago
parent
commit
5625d987ee
  1. 44
      VRE/VRE/settings.py

44
VRE/VRE/settings.py

@ -260,25 +260,25 @@ CORS_ALLOW_HEADERS = config('CORS_ALLOW_HEADERS', default='accept,accept-encodin @@ -260,25 +260,25 @@ CORS_ALLOW_HEADERS = config('CORS_ALLOW_HEADERS', default='accept,accept-encodin
CORS_EXPOSE_HEADERS = CORS_ALLOW_HEADERS
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'file': {
'class': 'logging.FileHandler',
'filename': f'{BASE_DIR}/../log/debug.log',
},
},
'loggers': {
'django': {
'handlers': ['file'],
'level': 'DEBUG' if DEBUG else 'INFO',
'propagate': True,
},
'hawkrest': {
'handlers': ['file'],
'level': 'DEBUG' if DEBUG else 'INFO',
}
},
}
# LOGGING = {
# 'version': 1,
# 'disable_existing_loggers': False,
# 'handlers': {
# 'file': {
# 'class': 'logging.FileHandler',
# 'filename': f'{BASE_DIR}/../log/debug.log',
# },
# },
# 'loggers': {
# 'django': {
# 'handlers': ['file'],
# 'level': 'DEBUG' if DEBUG else 'INFO',
# 'propagate': True,
# },
# 'hawkrest': {
# 'handlers': ['file'],
# 'level': 'DEBUG' if DEBUG else 'INFO',
# }
# },
# }

Loading…
Cancel
Save