Skip to content

Commit

Permalink
Avoid empty newlines in Supervisor logs
Browse files Browse the repository at this point in the history
It seems that the bashio ping command leads to empty newlines in the
Supervisor logs. Redirecting its stdout to /dev/null avoids these empty
newlines.
  • Loading branch information
agners committed Nov 11, 2023
1 parent 16b71a2 commit 8a114be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/services.d/watchdog/run
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ do
if [[ "${supervisor_state}" = "running" ]]; then

# Check API
if bashio::supervisor.ping; then
if bashio::supervisor.ping > /dev/null; then
failed_count=0
else
bashio::log.warning "Maybe found an issue on API healthy"
Expand Down

0 comments on commit 8a114be

Please sign in to comment.