It's set to 0 by default, cast it to boolean to be sure, just like we do for the other containers.
@@ -1,4 +1,4 @@
-{{ if .Env.SENTRY_DSN }}
+{{ if .Env.SENTRY_DSN | default "0" | toBool }}
handlers=java.util.logging.ConsoleHandler,io.sentry.jul.SentryHandler
{{ else }}
handlers=java.util.logging.ConsoleHandler