Remove log file
The log is covered by .gitignore
, but it was added before .gitignore
was created so it continued to be versioned. When we remove it, .gitignore
should ensure it isn't recreated.
Addresses esap-general#102 (closed).
Merge request reports
Activity
requested review from @lautenbach
Hey @lautenbach — do you have time for a quick review?
132 132 # https://docs.djangoproject.com/en/1.11/topics/logging/#configuring-logging 133 133 # The default configuration: https://github.com/django/django/blob/stable/1.11.x/django/utils/log.py 134 134 135 # Ensure that the output directory for the log file exists; 136 # it won't be created automatically. 137 LOG_FILE_NAME = os.path.join(BASE_DIR, "../logs/esap.log") Well, sorta. Because of the way
BASE_DIR
is defined, it is necessary to say “go up a level then intologs
” in order for the logs to land in the same place as they are now.We could also do that with something like
LOG_FILE_NAME = os.path.join(os.path.dirname(BASE_DIR), "logs/esap.log")
but that looks even uglier to me.
The other option is just to use a relative path, but I guess that makes the location of the log dependent on the directory the user happens to be in when they start things up, which seems less than great.
So in short: I think this is a big ugly but the best compromise. But if it makes you really unhappy, let me know and I'll do something else! :-)
mentioned in commit 39e03d8f