modified logging file path for production settings

remotes/origin/HEAD
Max Yakovenko 8 years ago
parent 34a671c079
commit bc009486da
  1. 4
      eshop_project/settings/base.py
  2. 4
      eshop_project/settings/production.py

@ -204,7 +204,7 @@ LOGGING = {
'production_file': {
'level': 'DEBUG',
'class': 'logging.handlers.RotatingFileHandler',
'filename': '/var/log/eshop_main_prod.log',
'filename': 'logs/eshop_main_prod.log',
'maxBytes': 1024*1024*5,
'backupCount': 7,
'formatter': 'main_formatter',
@ -213,7 +213,7 @@ LOGGING = {
'debug_file': {
'level': 'DEBUG',
'class': 'logging.handlers.RotatingFileHandler',
'filename': '/var/log/eshop_main_dev.log',
'filename': 'logs/eshop_main_dev.log',
'maxBytes': 1024*1024*5,
'backupCount': 7,
'formatter': 'main_formatter',

@ -22,3 +22,7 @@ EMAIL_HOST = EMAIL_CONFIG.get('EMAIL_HOST')
EMAIL_PORT = EMAIL_CONFIG.get('EMAIL_PORT')
EMAIL_HOST_USER = EMAIL_CONFIG.get('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = EMAIL_CONFIG.get('EMAIL_HOST_PASSWORD')
# Logging
LOGGING['handlers']['production_file'] = '../logs/eshop_main_prod.log'
LOGGING['handlers']['debug_file'] = '../logs/eshop_main_prod.log'

Loading…
Cancel
Save