Fix Jitsi logging.properties conditional being interpreted as Jinja code

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1464
This commit is contained in:
Slavi Pantaleev 2021-12-15 21:22:29 +02:00
parent 0f569df629
commit 60592fd6a8
2 changed files with 4 additions and 0 deletions

View File

@ -1,8 +1,10 @@
{% raw %}
{{ if .Env.SENTRY_DSN | default "0" | toBool }} {{ if .Env.SENTRY_DSN | default "0" | toBool }}
handlers=java.util.logging.ConsoleHandler,io.sentry.jul.SentryHandler handlers=java.util.logging.ConsoleHandler,io.sentry.jul.SentryHandler
{{ else }} {{ else }}
handlers= java.util.logging.ConsoleHandler handlers= java.util.logging.ConsoleHandler
{{ end }} {{ end }}
{% endraw %}
java.util.logging.ConsoleHandler.level = ALL java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter

View File

@ -1,8 +1,10 @@
{% raw %}
{{ if .Env.SENTRY_DSN | default "0" | toBool }} {{ if .Env.SENTRY_DSN | default "0" | toBool }}
handlers=java.util.logging.ConsoleHandler,io.sentry.jul.SentryHandler handlers=java.util.logging.ConsoleHandler,io.sentry.jul.SentryHandler
{{ else }} {{ else }}
handlers= java.util.logging.ConsoleHandler handlers= java.util.logging.ConsoleHandler
{{ end }} {{ end }}
{% endraw %}
java.util.logging.ConsoleHandler.level = ALL java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter