Fix logging paths and permissions for chill role configuration

Corrected log file paths in Monolog configuration and Compose file for consistency. Updated directory permissions in tasks to allow group write access. These changes improve log file organization and facilitate better collaboration.
This commit is contained in:
julienfastre committed 2025-01-13 10:52:15 +01:00
1 parent cc82c7b2c5
commit c572d68eb4
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@
state: directory state: directory
owner: 33 owner: 33
group: 33 group: 33
mode: '0744' mode: '0774'
- name: Install traefik - name: Install traefik
ansible.builtin.include_tasks: traefik.yml ansible.builtin.include_tasks: traefik.yml
+1 -1
View File
@@ -29,7 +29,7 @@ services:
- env_file.env - env_file.env
volumes: volumes:
- './config/prod:/var/www/app/config/packages/prod:ro' - './config/prod:/var/www/app/config/packages/prod:ro'
- '/var/log/chill:/var/www/app/var/logs:rw' - '/var/log/chill:/var/www/app/var/log:rw'
- '{{ doc_storage_dir }}/{{ item['chill_environment'] }}:/var/storage:rw' - '{{ doc_storage_dir }}/{{ item['chill_environment'] }}:/var/storage:rw'
links: links:
- redis - redis
+2 -2
View File
@@ -4,12 +4,12 @@ monolog:
handlers: handlers:
default_log: default_log:
type: stream type: stream
path: "%kernel.logs_dir%/%log_prefix%-privacy.log" path: "%kernel.logs_dir%/privacy-%log_prefix%.log"
level: info level: info
channels: ['chill'] channels: ['chill']
chill_log: chill_log:
type: stream type: stream
path: "%kernel.logs_dir%/%log_prefix%-default.log" path: "%kernel.logs_dir%/default-%log_prefix%.log"
level: info level: info
channels: ['!event', '!doctrine', '!console', '!chill'] channels: ['!event', '!doctrine', '!console', '!chill']
console: console: