move logs to /var

This commit is contained in:
histausse 2021-10-02 21:07:47 +02:00
parent 62f51525c6
commit 41ec64e26e
Signed by: histausse
GPG key ID: 67486F107F62E9E9
4 changed files with 20 additions and 4 deletions

View file

@ -89,6 +89,14 @@
dest: /etc/systemd/system/bridge_discord.service
notify: Restart the discord bridge
- name: Ensure the log directory exists
file:
path: /var/log/bridge_discord
state: directory
group: root
owner: root
mode: u=rwx,g=rx,o=
- name: Enable the daemon
systemd:
name: bridge_discord

View file

@ -49,12 +49,12 @@ logging:
console: "warn" #silly, verbose, info, http, warn, error, silent
lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
files:
- file: "debug.log"
- file: "/var/log/bridge_discord/debug.log"
disable:
- "PresenceHandler" # Will not capture presence logging
- file: "warn.log" # Will capture warnings
- file: "/var/log/bridge_discord/warn.log" # Will capture warnings
level: "warn"
- file: "botlogs.log" # Will capture logs from DiscordBot
- file: "/var/log/bridge_discord/botlogs.log" # Will capture logs from DiscordBot
level: "info"
enable:
- "DiscordBot"

View file

@ -68,6 +68,14 @@
dest: /etc/matrix-synapse/facebook-registration.yaml
state: link
- name: Ensure the log directory exists
file:
path: /var/log/bridge_facebook
state: directory
group: nogroup
owner: mautrix-facebook
mode: u=rwx,g=rx,o=
- name: Copy the daemon configuration
template:
src: bridge_facebook.service

View file

@ -247,7 +247,7 @@ logging:
file:
class: logging.handlers.RotatingFileHandler
formatter: normal
filename: ./mautrix-facebook.log
filename: /var/log/bridge_facebook/mautrix-facebook.log
maxBytes: 10485760
backupCount: 10
console: