made log var a env variable
This commit is contained in:
parent
846166bd9f
commit
0d9dc90362
|
@ -5,6 +5,7 @@ DEMO=true
|
||||||
DEBUG=true
|
DEBUG=true
|
||||||
DPP=false
|
DPP=false
|
||||||
|
|
||||||
|
DEVICE_LOG_PATH=/tmp
|
||||||
STATIC_ROOT=/tmp/static/
|
STATIC_ROOT=/tmp/static/
|
||||||
MEDIA_ROOT=/tmp/media/
|
MEDIA_ROOT=/tmp/media/
|
||||||
EMAIL_HOST="mail.example.org"
|
EMAIL_HOST="mail.example.org"
|
||||||
|
|
|
@ -65,6 +65,8 @@ ENABLE_EMAIL = config("ENABLE_EMAIL", default=True, cast=bool)
|
||||||
|
|
||||||
EVIDENCES_DIR = config("EVIDENCES_DIR", default=os.path.join(BASE_DIR, "db"))
|
EVIDENCES_DIR = config("EVIDENCES_DIR", default=os.path.join(BASE_DIR, "db"))
|
||||||
|
|
||||||
|
DEVICE_LOG_PATH = config("DEVICE_LOG_PATH", default="/tmp")
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
@ -229,7 +231,7 @@ LOGGING = {
|
||||||
'device_log_file': {
|
'device_log_file': {
|
||||||
'level': 'INFO',
|
'level': 'INFO',
|
||||||
'class': 'logging.FileHandler',
|
'class': 'logging.FileHandler',
|
||||||
'filename': '/var/log/device_changes.log',
|
'filename': DEVICE_LOG_PATH + "/device_changes.log",
|
||||||
'formatter': 'verbose',
|
'formatter': 'verbose',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue