move logs to /var
This commit is contained in:
parent
62f51525c6
commit
41ec64e26e
4 changed files with 20 additions and 4 deletions
|
@ -89,6 +89,14 @@
|
||||||
dest: /etc/systemd/system/bridge_discord.service
|
dest: /etc/systemd/system/bridge_discord.service
|
||||||
notify: Restart the discord bridge
|
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
|
- name: Enable the daemon
|
||||||
systemd:
|
systemd:
|
||||||
name: bridge_discord
|
name: bridge_discord
|
||||||
|
|
|
@ -49,12 +49,12 @@ logging:
|
||||||
console: "warn" #silly, verbose, info, http, warn, error, silent
|
console: "warn" #silly, verbose, info, http, warn, error, silent
|
||||||
lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
|
lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
|
||||||
files:
|
files:
|
||||||
- file: "debug.log"
|
- file: "/var/log/bridge_discord/debug.log"
|
||||||
disable:
|
disable:
|
||||||
- "PresenceHandler" # Will not capture presence logging
|
- "PresenceHandler" # Will not capture presence logging
|
||||||
- file: "warn.log" # Will capture warnings
|
- file: "/var/log/bridge_discord/warn.log" # Will capture warnings
|
||||||
level: "warn"
|
level: "warn"
|
||||||
- file: "botlogs.log" # Will capture logs from DiscordBot
|
- file: "/var/log/bridge_discord/botlogs.log" # Will capture logs from DiscordBot
|
||||||
level: "info"
|
level: "info"
|
||||||
enable:
|
enable:
|
||||||
- "DiscordBot"
|
- "DiscordBot"
|
||||||
|
|
|
@ -68,6 +68,14 @@
|
||||||
dest: /etc/matrix-synapse/facebook-registration.yaml
|
dest: /etc/matrix-synapse/facebook-registration.yaml
|
||||||
state: link
|
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
|
- name: Copy the daemon configuration
|
||||||
template:
|
template:
|
||||||
src: bridge_facebook.service
|
src: bridge_facebook.service
|
||||||
|
|
|
@ -247,7 +247,7 @@ logging:
|
||||||
file:
|
file:
|
||||||
class: logging.handlers.RotatingFileHandler
|
class: logging.handlers.RotatingFileHandler
|
||||||
formatter: normal
|
formatter: normal
|
||||||
filename: ./mautrix-facebook.log
|
filename: /var/log/bridge_facebook/mautrix-facebook.log
|
||||||
maxBytes: 10485760
|
maxBytes: 10485760
|
||||||
backupCount: 10
|
backupCount: 10
|
||||||
console:
|
console:
|
||||||
|
|
Loading…
Reference in a new issue