Fix the log location by using the log directory

The log file is really just the name of the log file (ara.log).
By defaulting to /var/log/ara/ara.log, the name of the log file was
expected to be /var/lib/ara/var/log/ara/ara.log which is funny but
wrong. Fix that.

Change-Id: I334ba3ec6748eeacd6a89974d0e55afd02a71e13
This commit is contained in:
David Moreau Simard 2018-05-01 14:33:46 -04:00
parent 98397ae004
commit c248ca3edc
No known key found for this signature in database
GPG Key ID: 33A07694CBB71ECC
2 changed files with 5 additions and 3 deletions

View File

@ -29,8 +29,10 @@ ara:
dir: /var/lib/ara
# Path to the logging configuration
logconfig: /etc/ara/logging.yml
# Where logs are located
logfile: /var/log/ara/ara.log
# Path where logs are stored
logdir: /var/log/ara
# Name of the log file
logfile: ara.log
deployment:
# Server (apache, embedded, nginx)
server: embedded

View File

@ -1,4 +1,4 @@
{{ ara.config.logfile | dirname }}/*.log {
{{ ara.config.logdir }}/*.log {
rotate 14
size 10M
missingok