From e05d26e69033273a2cd5cb582ac005cf6d5b67ff Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Sat, 14 Jan 2023 13:27:03 -0300 Subject: [PATCH] Write logs to stderr --- docker/rootfs/etc/cont-init.d/prepare-go2rtc.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/rootfs/etc/cont-init.d/prepare-go2rtc.sh b/docker/rootfs/etc/cont-init.d/prepare-go2rtc.sh index d53268105..de2dbf782 100755 --- a/docker/rootfs/etc/cont-init.d/prepare-go2rtc.sh +++ b/docker/rootfs/etc/cont-init.d/prepare-go2rtc.sh @@ -19,9 +19,9 @@ if ip_address=$( jq --exit-status --raw-output '.data.ipv4.address[0]' ) && [[ "${ip_address}" =~ ${ip_regex} ]]; then ip_address="${BASH_REMATCH[1]}" - echo "Got IP address from supervisor: ${ip_address}" + echo "Got IP address from supervisor: ${ip_address}" >&2 else - echo "Failed to get IP address from supervisor" + echo "Failed to get IP address from supervisor" >&2 # Exit with success so that the container can still start exit 0 fi @@ -35,9 +35,9 @@ if webrtc_port=$( jq --exit-status --raw-output '.data.network["22/tcp"]' ) && [[ "${webrtc_port}" =~ ${port_regex} ]]; then webrtc_port="${BASH_REMATCH[1]}" - echo "Got WebRTC port from supervisor: ${ip_address}" + echo "Got WebRTC port from supervisor: ${ip_address}" >&2 else - echo "Failed to get WebRTC port from supervisor" + echo "Failed to get WebRTC port from supervisor" >&2 # Exit with success so that the container can still start exit 0 fi