Просмотр исходного кода

Update files for matrix-appservice-irc: add the common section "Troubleshooting"

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
pull/4013/head
Suguru Hirahara 1 год назад
Родитель
Сommit
684f1dc16e
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: E4F9743DAB4B7B75
2 измененных файлов: 20 добавлений и 2 удалений
  1. +19
    -0
      docs/configuring-playbook-bridge-appservice-irc.md
  2. +1
    -2
      roles/custom/matrix-bridge-appservice-irc/templates/config.yaml.j2

+ 19
- 0
docs/configuring-playbook-bridge-appservice-irc.md Просмотреть файл

@@ -89,3 +89,22 @@ ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,ensure-matrix-use
## Usage

To use the bridge, you need to start a chat with `@irc_bot:example.com` (where `example.com` is your base domain, not the `matrix.` domain).

## Troubleshooting

As with all other services, you can find the logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by logging in to the server with SSH and running `journalctl -fu matrix-appservice-irc`.

### Configuring for logging

The default logging level for this component is `debug`, and the log is output to the console only. If you want to change the verbosity or enable logging to a file, add the following configuration to your `vars.yml` file (adapt to your needs) and re-run the playbook:

```yaml
matrix_appservice_irc_configuration_extension_yaml: |
logging:
# Level to log on console/logfile. One of error|warn|info|debug
level: "debug"
# The file location to log to. This is relative to the project directory.
logfile: "debug.log"
# The file location to log errors to. This is relative to the project directory.
errfile: "errors.log"
```

+ 1
- 2
roles/custom/matrix-bridge-appservice-irc/templates/config.yaml.j2 Просмотреть файл

@@ -78,8 +78,7 @@ ircService:
level: "debug"
# The file location to log to. This is relative to the project directory.
#logfile: "debug.log"
# The file location to log errors to. This is relative to the project
# directory.
# The file location to log errors to. This is relative to the project directory.
#errfile: "errors.log"
# Whether to log to the console or not.
toConsole: true


Загрузка…
Отмена
Сохранить