From 287b3a82a9ced25b8bc80e0223d6e429d622e136 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Tue, 23 Feb 2016 02:45:48 +0000 Subject: [PATCH] Move default logfile location to log folder chmod 777 log folder so apache can write Addresses #282 --- alliance_auth/settings.py.example | 2 +- log/.gitignore | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 log/.gitignore diff --git a/alliance_auth/settings.py.example b/alliance_auth/settings.py.example index 08fd6cdd..e068b5a1 100755 --- a/alliance_auth/settings.py.example +++ b/alliance_auth/settings.py.example @@ -403,7 +403,7 @@ LOGGING = { 'log_file': { 'level': 'INFO', # edit this line to change logging level to file 'class': 'logging.handlers.RotatingFileHandler', - 'filename': os.path.join(BASE_DIR,'allianceauth.log'), + 'filename': os.path.join(BASE_DIR,'log/allianceauth.log'), 'formatter': 'verbose', 'maxBytes': 1024*1024*5, # edit this line to change max log file size 'backupCount': 5, # edit this line to change number of log backups diff --git a/log/.gitignore b/log/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/log/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore