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
2 changed files with 5 additions and 3 deletions

View File

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

View File

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