Parcourir la source

Make Hookshot logging-level configurable

pull/2307/head
Slavi Pantaleev il y a 3 ans
Parent
révision
4a62df2ea3
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. +2
    -0
      roles/custom/matrix-bridge-hookshot/defaults/main.yml
  2. +1
    -1
      roles/custom/matrix-bridge-hookshot/templates/config.yml.j2

+ 2
- 0
roles/custom/matrix-bridge-hookshot/defaults/main.yml Voir le fichier

@@ -146,6 +146,8 @@ matrix_hookshot_provisioning_enabled: false
matrix_hookshot_provisioning_internal: "/v1" matrix_hookshot_provisioning_internal: "/v1"
matrix_hookshot_provisioning_endpoint: "{{ matrix_hookshot_public_endpoint }}{{ matrix_hookshot_provisioning_internal }}" matrix_hookshot_provisioning_endpoint: "{{ matrix_hookshot_public_endpoint }}{{ matrix_hookshot_provisioning_internal }}"


# Valid logging levels are: debug, info, warn, error
matrix_hookshot_logging_level: warn


matrix_hookshot_widgets_enabled: true matrix_hookshot_widgets_enabled: true
matrix_hookshot_widgets_port: 9003 matrix_hookshot_widgets_port: 9003


+ 1
- 1
roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 Voir le fichier

@@ -110,7 +110,7 @@ metrics:
logging: logging:
# (Optional) Logging settings. You can have a severity debug,info,warn,error # (Optional) Logging settings. You can have a severity debug,info,warn,error
# #
level: warn
level: {{ matrix_hookshot_logging_level | to_json }}
{% if matrix_hookshot_widgets_enabled %} {% if matrix_hookshot_widgets_enabled %}
widgets: widgets:
# (Optional) EXPERIMENTAL support for complimentary widgets # (Optional) EXPERIMENTAL support for complimentary widgets


Chargement…
Annuler
Enregistrer