From c01005d63a89f89860b124a693239f9389079b67 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 5 Feb 2026 09:22:55 +0100 Subject: [PATCH] Debug message Simplified debug logging setup for OpenVPN. --- qbittorrent/rootfs/usr/local/sbin/vpn | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/qbittorrent/rootfs/usr/local/sbin/vpn b/qbittorrent/rootfs/usr/local/sbin/vpn index b560587c0..4f81d9fff 100755 --- a/qbittorrent/rootfs/usr/local/sbin/vpn +++ b/qbittorrent/rootfs/usr/local/sbin/vpn @@ -11,6 +11,7 @@ declare -a dns_servers_ipv6=() log_level="$(bashio::config "log_level")" [[ "$log_level" == "debug" ]] && set -x +[[ "$log_level" == "debug" ]] && bashio::log.warning "--- Debug mode is active ---" _parse_config() { local -n config_ref="$1" @@ -351,11 +352,7 @@ _openvpn_up() { # Define logging log_path="/dev/null" - if [[ "$log_level" == "debug" ]]; then - bashio::log.warning "Starting openvpn in debug mode" - bashio::log.warning "------------------------------" - log_path="/proc/1/fd/1" - fi + [[ "$log_level" == "debug" ]] && log_path="/proc/1/fd/1" # Start OpenVPN in the background _cmd "/usr/sbin/openvpn \