Skip to content

Commit

Permalink
todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat0694 committed Apr 15, 2024
1 parent f71817f commit ac99fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ print_details() { #{{{
# if successfull/error.
#######################################
check_fluentbit_status() { #{{{
# TODO: Try running on a long running fluentbit continer, private runner with a lot of logs
spinner_wait "Starting backend storage check.."
local container_id
local log_file
Expand Down Expand Up @@ -308,6 +307,7 @@ check_fluentbit_status() { #{{{
timeout=5
tries=0
until (( found_error == 1 )) || (( tries >= timeout )); do
# TODO: Do not run error chesks at all if ignore_fluentbit_errors is set
err_msg="$(grep -iaA4 -m1 -E "\[error.*" "$log_file" | tr -d '\0')"
if [[ -z "$err_msg" ]]; then
debug "Try #$((++tries)): No error messages found."
Expand Down

0 comments on commit ac99fbe

Please sign in to comment.