Преглед на файлове

Make Facebook/Telegram bridges not log to files

We log to journald anyway. There's no need for double-logging.

It should not that matrix-synapse logs to journald and to files,
but that's likely to change in the future as well.
Because Synapse's logs are insanely verbose right now (and may get
dropped by journald), it's more reliable to have file-logging too.

As Synapse matures and gets more stable, logging should hopefully
get less, we should be able to only use journald and stop writing to
files for it as well.
pull/196/head
Slavi Pantaleev преди 6 години
родител
ревизия
a9953dd641
променени са 2 файла, в които са добавени 2 реда и са изтрити 14 реда
  1. +1
    -7
      roles/matrix-bridge-mautrix-facebook/defaults/main.yml
  2. +1
    -7
      roles/matrix-bridge-mautrix-telegram/templates/config.yaml.j2

+ 1
- 7
roles/matrix-bridge-mautrix-facebook/defaults/main.yml Целия файл

@@ -134,12 +134,6 @@ matrix_mautrix_facebook_configuration_yaml: |
normal: normal:
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s" format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
handlers: handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: normal
filename: /data/mautrix-facebook.log
maxBytes: 10485760
backupCount: 10
console: console:
class: logging.StreamHandler class: logging.StreamHandler
formatter: colored formatter: colored
@@ -152,7 +146,7 @@ matrix_mautrix_facebook_configuration_yaml: |
level: INFO level: INFO
root: root:
level: DEBUG level: DEBUG
handlers: [file, console]
handlers: [console]


matrix_mautrix_facebook_configuration_extension_yaml: | matrix_mautrix_facebook_configuration_extension_yaml: |
# Your custom YAML configuration goes here. # Your custom YAML configuration goes here.


+ 1
- 7
roles/matrix-bridge-mautrix-telegram/templates/config.yaml.j2 Целия файл

@@ -251,12 +251,6 @@ logging:
precise: precise:
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s" format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
handlers: handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: precise
filename: /data/mautrix-telegram.log
maxBytes: 10485760
backupCount: 10
console: console:
class: logging.StreamHandler class: logging.StreamHandler
formatter: precise formatter: precise
@@ -269,4 +263,4 @@ logging:
level: INFO level: INFO
root: root:
level: DEBUG level: DEBUG
handlers: [file, console]
handlers: [console]

Зареждане…
Отказ
Запис