Skip to content

Commit 42a7ecd

Browse files
authored
Update log timestamp in custom scripts align with supervisord (#2441)
1 parent 693e213 commit 42a7ecd

File tree

10 files changed

+80
-74
lines changed

10 files changed

+80
-74
lines changed

Diff for: .circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ workflows:
3737
name: "K8s test - Autoscaling Deployments"
3838
platforms: linux/arm64
3939
machine-type: ubuntu2204arm64large
40-
k8s-version: 'v1.28.14'
40+
k8s-version: 'v1.28.15'
4141
test-strategy: deployment
4242
cluster: 'minikube'
4343
helm-version: 'v3.13.3'
@@ -47,7 +47,7 @@ workflows:
4747
name: "K8s test - Autoscaling Jobs - HTTPS"
4848
platforms: linux/arm64
4949
machine-type: ubuntu2204arm64large
50-
k8s-version: 'v1.29.9'
50+
k8s-version: 'v1.29.10'
5151
test-strategy: job_https
5252
cluster: 'minikube'
5353
helm-version: 'v3.14.3'
@@ -57,7 +57,7 @@ workflows:
5757
name: "K8s test - Autoscaling Jobs - Ingress hostname"
5858
platforms: linux/arm64
5959
machine-type: ubuntu2204arm64large
60-
k8s-version: 'v1.30.5'
60+
k8s-version: 'v1.30.6'
6161
test-strategy: job_hostname
6262
cluster: 'minikube'
6363
helm-version: 'v3.15.4'

Diff for: .github/workflows/helm-chart-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@ jobs:
5555
docker-version: '24.0.9'
5656
test-upgrade: true
5757
service-mesh: true
58-
- k8s-version: 'v1.28.14'
58+
- k8s-version: 'v1.28.15'
5959
test-strategy: deployment
6060
cluster: 'minikube'
6161
helm-version: 'v3.13.3'
6262
docker-version: '24.0.9'
6363
test-upgrade: true
6464
service-mesh: true
65-
- k8s-version: 'v1.29.9'
65+
- k8s-version: 'v1.29.10'
6666
test-strategy: job_https
6767
cluster: 'minikube'
6868
helm-version: 'v3.14.3'
6969
docker-version: '25.0.5'
7070
test-upgrade: true
7171
service-mesh: false
72-
- k8s-version: 'v1.30.5'
72+
- k8s-version: 'v1.30.6'
7373
test-strategy: job_hostname
7474
cluster: 'minikube'
7575
helm-version: 'v3.15.4'

Diff for: Base/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ ENV SE_BIND_HOST=false \
163163
SE_SUPERVISORD_CHILD_LOG_DIR="/tmp" \
164164
SE_SUPERVISORD_LOG_FILE="/tmp/supervisord.log" \
165165
SE_SUPERVISORD_PID_FILE="/tmp/supervisord.pid" \
166+
SE_LOG_TIMESTAMP_FORMAT="%Y-%m-%d %H:%M:%S,%3N" \
166167
SE_LOG_LEVEL="INFO" \
167168
SE_HTTP_LOGS=false \
168169
SE_STRUCTURED_LOGS=false \

Diff for: Video/upload.sh

+11-10
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ UPLOAD_RETAIN_LOCAL_FILE=${SE_UPLOAD_RETAIN_LOCAL_FILE:-"false"}
99
UPLOAD_PIPE_FILE_NAME=${SE_UPLOAD_PIPE_FILE_NAME:-"uploadpipe"}
1010
VIDEO_INTERNAL_UPLOAD=${VIDEO_INTERNAL_UPLOAD:-$SE_VIDEO_INTERNAL_UPLOAD}
1111
VIDEO_UPLOAD_BATCH_CHECK=${SE_VIDEO_UPLOAD_BATCH_CHECK:-"10"}
12+
ts_format=${SE_LOG_TIMESTAMP_FORMAT:-"%Y-%m-%d %H:%M:%S,%3N"}
1213
process_name="video.uploader"
1314

1415
if [ "${VIDEO_INTERNAL_UPLOAD}" = "true" ]; then
@@ -22,7 +23,7 @@ else
2223
fi
2324

2425
if [ "${UPLOAD_RETAIN_LOCAL_FILE}" = "false" ]; then
25-
echo "$(date +%FT%T%Z) [${process_name}] - UPLOAD_RETAIN_LOCAL_FILE is set to false, force to use RCLONE command: move"
26+
echo "$(date -u +"${ts_format}") [${process_name}] - UPLOAD_RETAIN_LOCAL_FILE is set to false, force to use RCLONE command: move"
2627
UPLOAD_COMMAND="move"
2728
fi
2829

@@ -55,7 +56,7 @@ function check_and_clear_background() {
5556
function rclone_upload() {
5657
local source=$1
5758
local target=$2
58-
echo "$(date +%FT%T%Z) [${process_name}] - Uploading ${source} to ${target}"
59+
echo "$(date -u +"${ts_format}") [${process_name}] - Uploading ${source} to ${target}"
5960
rclone --config ${UPLOAD_CONFIG_DIRECTORY}/${UPLOAD_CONFIG_FILE_NAME} ${UPLOAD_COMMAND} ${UPLOAD_OPTS} "${source}" "${target}" &
6061
list_rclone_pid+=($!)
6162
check_and_clear_background
@@ -70,46 +71,46 @@ function check_if_pid_alive() {
7071
}
7172

7273
function consume_pipe_file_in_background() {
73-
echo "$(date +%FT%T%Z) [${process_name}] - Start consuming pipe file to upload"
74+
echo "$(date -u +"${ts_format}") [${process_name}] - Start consuming pipe file to upload"
7475
while read FILE DESTINATION <${UPLOAD_PIPE_FILE}; do
7576
if [ "${FILE}" = "exit" ]; then
76-
echo "$(date +%FT%T%Z) [${process_name}] - Received exit signal. Aborting upload process"
77+
echo "$(date -u +"${ts_format}") [${process_name}] - Received exit signal. Aborting upload process"
7778
return 0
7879
elif [ "$FILE" != "" ] && [ "$DESTINATION" != "" ]; then
7980
rclone_upload "${FILE}" "${DESTINATION}"
8081
fi
8182
done
82-
echo "$(date +%FT%T%Z) [${process_name}] - Stopped consuming pipe file. Upload process is done"
83+
echo "$(date -u +"${ts_format}") [${process_name}] - Stopped consuming pipe file. Upload process is done"
8384
return 0
8485
}
8586

8687
# Function to check if the named pipe exists
8788
check_if_pipefile_exists() {
8889
if [ -p "${UPLOAD_PIPE_FILE}" ]; then
89-
echo "$(date +%FT%T%Z) [${process_name}] - Named pipe ${UPLOAD_PIPE_FILE} exists"
90+
echo "$(date -u +"${ts_format}") [${process_name}] - Named pipe ${UPLOAD_PIPE_FILE} exists"
9091
return 0
9192
fi
9293
return 1
9394
}
9495

9596
function wait_until_pipefile_exists() {
96-
echo "$(date +%FT%T%Z) [${process_name}] - Waiting for ${UPLOAD_PIPE_FILE} to be present"
97+
echo "$(date -u +"${ts_format}") [${process_name}] - Waiting for ${UPLOAD_PIPE_FILE} to be present"
9798
until check_if_pipefile_exists; do
9899
sleep 1
99100
done
100101
}
101102

102103
function graceful_exit() {
103-
echo "$(date +%FT%T%Z) [${process_name}] - Trapped SIGTERM/SIGINT/x so shutting down uploader"
104+
echo "$(date -u +"${ts_format}") [${process_name}] - Trapped SIGTERM/SIGINT/x so shutting down uploader"
104105
if ! check_if_pid_alive "${UPLOAD_PID}"; then
105106
consume_pipe_file_in_background &
106107
UPLOAD_PID=$!
107108
fi
108109
echo "exit" >>"${UPLOAD_PIPE_FILE}" &
109110
wait "${UPLOAD_PID}"
110-
echo "$(date +%FT%T%Z) [${process_name}] - Uploader consumed all files in the pipe"
111+
echo "$(date -u +"${ts_format}") [${process_name}] - Uploader consumed all files in the pipe"
111112
rm -rf "${FORCE_EXIT_FILE}"
112-
echo "$(date +%FT%T%Z) [${process_name}] - Uploader is ready to shutdown"
113+
echo "$(date -u +"${ts_format}") [${process_name}] - Uploader is ready to shutdown"
113114
exit 0
114115
}
115116

Diff for: Video/validate_endpoint.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
endpoint=$1
44
graphql_endpoint=${2:-false}
55
max_time=1
6+
ts_format=${SE_LOG_TIMESTAMP_FORMAT:-"%Y-%m-%d %H:%M:%S,%3N"}
67
process_name="endpoint.checks"
78

89
BASIC_AUTH="$(echo -en "${SE_ROUTER_USERNAME}:${SE_ROUTER_PASSWORD}" | base64 -w0)"
@@ -18,9 +19,9 @@ else
1819
fi
1920

2021
if [[ "$endpoint_checks" = "404" ]]; then
21-
echo "$(date +%FT%T%Z) [${process_name}] - Endpoint ${endpoint} is not found - status code: ${endpoint_checks}"
22+
echo "$(date -u +"${ts_format}") [${process_name}] - Endpoint ${endpoint} is not found - status code: ${endpoint_checks}"
2223
elif [[ "$endpoint_checks" = "401" ]]; then
23-
echo "$(date +%FT%T%Z) [${process_name}] - Endpoint ${endpoint} requires authentication - status code: ${endpoint_checks}. Please provide valid credentials via SE_ROUTER_USERNAME and SE_ROUTER_PASSWORD environment variables."
24+
echo "$(date -u +"${ts_format}") [${process_name}] - Endpoint ${endpoint} requires authentication - status code: ${endpoint_checks}. Please provide valid credentials via SE_ROUTER_USERNAME and SE_ROUTER_PASSWORD environment variables."
2425
elif [[ "$endpoint_checks" != "200" ]]; then
25-
echo "$(date +%FT%T%Z) [${process_name}] - Endpoint ${endpoint} is not available - status code: ${endpoint_checks}"
26+
echo "$(date -u +"${ts_format}") [${process_name}] - Endpoint ${endpoint} is not available - status code: ${endpoint_checks}"
2627
fi

Diff for: Video/video.sh

+23-22
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ UPLOAD_PIPE_FILE_NAME=${SE_UPLOAD_PIPE_FILE_NAME:-"uploadpipe"}
1616
SE_SERVER_PROTOCOL=${SE_SERVER_PROTOCOL:-"http"}
1717
poll_interval=${SE_VIDEO_POLL_INTERVAL:-1}
1818
max_attempts=${SE_VIDEO_WAIT_ATTEMPTS:-50}
19+
ts_format=${SE_LOG_TIMESTAMP_FORMAT:-"%Y-%m-%d %H:%M:%S,%3N"}
1920
process_name="video.recorder"
2021

2122
if [ "${SE_VIDEO_RECORD_STANDALONE}" = "true" ]; then
@@ -32,9 +33,9 @@ fi
3233
BASIC_AUTH="$(echo -en "${SE_ROUTER_USERNAME}:${SE_ROUTER_PASSWORD}" | base64 -w0)"
3334

3435
if [ -d "${VIDEO_FOLDER}" ]; then
35-
echo "$(date +%FT%T%Z) [${process_name}] - Video folder exists: ${VIDEO_FOLDER}"
36+
echo "$(date -u +"${ts_format}") [${process_name}] - Video folder exists: ${VIDEO_FOLDER}"
3637
else
37-
echo "$(date +%FT%T%Z) [${process_name}] - Video folder does not exist: ${VIDEO_FOLDER}. Due to permission, folder name could not be changed via environment variable. Exiting..."
38+
echo "$(date -u +"${ts_format}") [${process_name}] - Video folder does not exist: ${VIDEO_FOLDER}. Due to permission, folder name could not be changed via environment variable. Exiting..."
3839
exit 1
3940
fi
4041

@@ -56,20 +57,20 @@ function create_named_pipe() {
5657
rm -f "${UPLOAD_PIPE_FILE}"
5758
fi
5859
mkfifo "${UPLOAD_PIPE_FILE}"
59-
echo "$(date +%FT%T%Z) [${process_name}] - Created named pipe ${UPLOAD_PIPE_FILE}"
60+
echo "$(date -u +"${ts_format}") [${process_name}] - Created named pipe ${UPLOAD_PIPE_FILE}"
6061
fi
6162
fi
6263
}
6364

6465
function wait_for_display() {
6566
DISPLAY=${DISPLAY_CONTAINER_NAME}:${DISPLAY_NUM}.0
6667
export DISPLAY=${DISPLAY}
67-
echo "$(date +%FT%T%Z) [${process_name}] - Waiting for the display ${DISPLAY} is open"
68+
echo "$(date -u +"${ts_format}") [${process_name}] - Waiting for the display ${DISPLAY} is open"
6869
until xset b off >/dev/null 2>&1; do
6970
sleep ${poll_interval}
7071
done
7172
VIDEO_SIZE=$(xdpyinfo | grep 'dimensions:' | awk '{print $2}')
72-
echo "$(date +%FT%T%Z) [${process_name}] - Display ${DISPLAY} is open with dimensions ${VIDEO_SIZE}"
73+
echo "$(date -u +"${ts_format}") [${process_name}] - Display ${DISPLAY} is open with dimensions ${VIDEO_SIZE}"
7374
}
7475

7576
function check_if_api_respond() {
@@ -81,7 +82,7 @@ function check_if_api_respond() {
8182
}
8283

8384
function wait_for_api_respond() {
84-
echo "$(date +%FT%T%Z) [${process_name}] - Waiting for Node endpoint responds"
85+
echo "$(date -u +"${ts_format}") [${process_name}] - Waiting for Node endpoint responds"
8586
until check_if_api_respond; do
8687
sleep ${poll_interval}
8788
done
@@ -94,31 +95,31 @@ function wait_util_uploader_shutdown() {
9495
if [[ "${VIDEO_UPLOAD_ENABLED}" = "true" ]] && [[ -n "${UPLOAD_DESTINATION_PREFIX}" ]] && [[ "${VIDEO_INTERNAL_UPLOAD}" != "true" ]]; then
9596
while [[ -f ${FORCE_EXIT_FILE} ]] && [[ ${wait} -lt ${max_wait} ]]; do
9697
echo "exit" >>${UPLOAD_PIPE_FILE} &
97-
echo "$(date +%FT%T%Z) [${process_name}] - Waiting for force exit file to be consumed by external upload container"
98+
echo "$(date -u +"${ts_format}") [${process_name}] - Waiting for force exit file to be consumed by external upload container"
9899
sleep 1
99100
wait=$((wait + 1))
100101
done
101102
fi
102103
if [[ "${VIDEO_UPLOAD_ENABLED}" = "true" ]] && [[ -n "${UPLOAD_DESTINATION_PREFIX}" ]] && [[ "${VIDEO_INTERNAL_UPLOAD}" = "true" ]]; then
103104
while [[ $(pgrep rclone | wc -l) -gt 0 ]]; do
104105
echo "exit" >>${UPLOAD_PIPE_FILE} &
105-
echo "$(date +%FT%T%Z) [${process_name}] - Recorder is waiting for RCLONE to finish"
106+
echo "$(date -u +"${ts_format}") [${process_name}] - Recorder is waiting for RCLONE to finish"
106107
sleep 1
107108
done
108109
fi
109110
}
110111

111112
function send_exit_signal_to_uploader() {
112113
if [[ "${VIDEO_UPLOAD_ENABLED}" = "true" ]] && [[ -n "${UPLOAD_DESTINATION_PREFIX}" ]]; then
113-
echo "$(date +%FT%T%Z) [${process_name}] - Sending a signal to force exit the uploader"
114+
echo "$(date -u +"${ts_format}") [${process_name}] - Sending a signal to force exit the uploader"
114115
echo "exit" >>${UPLOAD_PIPE_FILE} &
115116
echo "exit" >${FORCE_EXIT_FILE}
116117
fi
117118
}
118119

119120
function exit_on_max_session_reach() {
120121
if [[ $max_recorded_count -gt 0 ]] && [[ $recorded_count -ge $max_recorded_count ]]; then
121-
echo "$(date +%FT%T%Z) [${process_name}] - Node will be drained since max sessions reached count number ($max_recorded_count)"
122+
echo "$(date -u +"${ts_format}") [${process_name}] - Node will be drained since max sessions reached count number ($max_recorded_count)"
122123
exit
123124
fi
124125
}
@@ -139,14 +140,14 @@ function stop_ffmpeg() {
139140

140141
function stop_recording() {
141142
stop_ffmpeg
142-
echo "$(date +%FT%T%Z) [${process_name}] - Video recording stopped"
143+
echo "$(date -u +"${ts_format}") [${process_name}] - Video recording stopped"
143144
recorded_count=$((recorded_count + 1))
144145
if [[ "${VIDEO_UPLOAD_ENABLED}" = "true" ]] && [[ -n "${UPLOAD_DESTINATION_PREFIX}" ]]; then
145146
upload_destination=${UPLOAD_DESTINATION_PREFIX}/${video_file_name}
146-
echo "$(date +%FT%T%Z) [${process_name}] - Add to pipe a signal Uploading video to $upload_destination"
147+
echo "$(date -u +"${ts_format}") [${process_name}] - Add to pipe a signal Uploading video to $upload_destination"
147148
echo "$video_file ${UPLOAD_DESTINATION_PREFIX}" >>${UPLOAD_PIPE_FILE} &
148149
elif [[ "${VIDEO_UPLOAD_ENABLED}" = "true" ]] && [[ -z "${UPLOAD_DESTINATION_PREFIX}" ]]; then
149-
echo "$(date +%FT%T%Z) [${process_name}] - Upload destination not known since UPLOAD_DESTINATION_PREFIX is not set. Continue without uploading."
150+
echo "$(date -u +"${ts_format}") [${process_name}] - Upload destination not known since UPLOAD_DESTINATION_PREFIX is not set. Continue without uploading."
150151
fi
151152
recording_started="false"
152153
}
@@ -171,12 +172,12 @@ function log_node_response() {
171172
}
172173

173174
function graceful_exit() {
174-
echo "$(date +%FT%T%Z) [${process_name}] - Trapped SIGTERM/SIGINT/x so shutting down recorder"
175+
echo "$(date -u +"${ts_format}") [${process_name}] - Trapped SIGTERM/SIGINT/x so shutting down recorder"
175176
stop_if_recording_inprogress
176177
send_exit_signal_to_uploader
177178
wait_util_uploader_shutdown
178179
kill -SIGTERM "$(cat ${SE_SUPERVISORD_PID_FILE})" 2>/dev/null
179-
echo "$(date +%FT%T%Z) [${process_name}] - Ready to shutdown the recorder"
180+
echo "$(date -u +"${ts_format}") [${process_name}] - Ready to shutdown the recorder"
180181
exit 0
181182
}
182183

@@ -204,36 +205,36 @@ else
204205
while curl --noproxy "*" -H "Authorization: Basic ${BASIC_AUTH}" -sk --request GET ${NODE_STATUS_ENDPOINT} >/tmp/status.json; do
205206
session_id=$(jq -r "${JQ_SESSION_ID_QUERY}" /tmp/status.json)
206207
if [[ "$session_id" != "null" && "$session_id" != "" && "$session_id" != "reserved" && "$recording_started" = "false" ]]; then
207-
echo "$(date +%FT%T%Z) [${process_name}] - Session: $session_id is created"
208+
echo "$(date -u +"${ts_format}") [${process_name}] - Session: $session_id is created"
208209
return_list=($(bash ${VIDEO_CONFIG_DIRECTORY}/video_graphQLQuery.sh "$session_id"))
209210
caps_se_video_record="${return_list[0]}"
210211
video_file_name="${return_list[1]}.mp4"
211212
endpoint_url="${return_list[2]}"
212213
/opt/bin/validate_endpoint.sh "${endpoint_url}" "true"
213-
echo "$(date +%FT%T%Z) [${process_name}] - Start recording: $caps_se_video_record, video file name: $video_file_name"
214+
echo "$(date -u +"${ts_format}") [${process_name}] - Start recording: $caps_se_video_record, video file name: $video_file_name"
214215
log_node_response
215216
fi
216217
if [[ "$session_id" != "null" && "$session_id" != "" && "$session_id" != "reserved" && "$recording_started" = "false" && "$caps_se_video_record" = "true" ]]; then
217218
video_file="${VIDEO_FOLDER}/$video_file_name"
218-
echo "$(date +%FT%T%Z) [${process_name}] - Starting to record video"
219+
echo "$(date -u +"${ts_format}") [${process_name}] - Starting to record video"
219220
ffmpeg -hide_banner -loglevel warning -flags low_delay -threads 2 -fflags nobuffer+genpts -strict experimental -y -f x11grab \
220221
-video_size ${VIDEO_SIZE} -r ${FRAME_RATE} -i ${DISPLAY} -codec:v ${CODEC} ${PRESET} -pix_fmt yuv420p "$video_file" &
221222
recording_started="true"
222-
echo "$(date +%FT%T%Z) [${process_name}] - Video recording started"
223+
echo "$(date -u +"${ts_format}") [${process_name}] - Video recording started"
223224
sleep ${poll_interval}
224225
elif [[ "$session_id" != "$prev_session_id" && "$recording_started" = "true" ]]; then
225226
stop_recording
226227
if [[ $max_recorded_count -gt 0 ]] && [[ $recorded_count -ge $max_recorded_count ]]; then
227-
echo "$(date +%FT%T%Z) [${process_name}] - Node will be drained since max sessions reached count number ($max_recorded_count)"
228+
echo "$(date -u +"${ts_format}") [${process_name}] - Node will be drained since max sessions reached count number ($max_recorded_count)"
228229
exit
229230
fi
230231
elif [[ $recording_started = "true" ]]; then
231-
echo "$(date +%FT%T%Z) [${process_name}] - Video recording in progress"
232+
echo "$(date -u +"${ts_format}") [${process_name}] - Video recording in progress"
232233
sleep ${poll_interval}
233234
else
234235
sleep ${poll_interval}
235236
fi
236237
prev_session_id=$session_id
237238
done
238-
echo "$(date +%FT%T%Z) [${process_name}] - Node API is not responding now, exiting..."
239+
echo "$(date -u +"${ts_format}") [${process_name}] - Node API is not responding now, exiting..."
239240
fi

Diff for: charts/selenium-grid/configs/distributor/distributorProbe.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
max_time=3
44
retry_time=3
55
probe_name="Probe.${1:-"Liveness"}"
6-
ts_format=${SE_LOG_TIMESTAMP_FORMAT:-"+%T.%3N"}
6+
ts_format=${SE_LOG_TIMESTAMP_FORMAT:-"%Y-%m-%d %H:%M:%S,%3N"}
77
ROUTER_CONFIG_DIRECTORY=${ROUTER_CONFIG_DIRECTORY:-"/opt/bin"}
88

99
GRID_GRAPHQL_URL=$(bash ${ROUTER_CONFIG_DIRECTORY}/routerGraphQLUrl.sh)
1010
BASIC_AUTH="$(echo -en "${SE_ROUTER_USERNAME}:${SE_ROUTER_PASSWORD}" | base64 -w0)"
1111

1212
if [ -z "${GRID_GRAPHQL_URL}" ]; then
13-
echo "$(date ${ts_format}) DEBUG [${probe_name}] - Could not construct GraphQL endpoint, please provide SE_HUB_HOST (or SE_ROUTER_HOST) and SE_HUB_PORT (or SE_ROUTER_PORT). Bypass the probe checks for now."
13+
echo "$(date -u +"${ts_format}") DEBUG [${probe_name}] - Could not construct GraphQL endpoint, please provide SE_HUB_HOST (or SE_ROUTER_HOST) and SE_HUB_PORT (or SE_ROUTER_PORT). Bypass the probe checks for now."
1414
exit 0
1515
fi
1616

1717
GRAPHQL_PRE_CHECK=$(curl --noproxy "*" -m ${max_time} -k -X POST -H "Authorization: Basic ${BASIC_AUTH}" -H "Content-Type: application/json" --data '{"query":"{ grid { sessionCount } }"}' -s -o /dev/null -w "%{http_code}" ${GRID_GRAPHQL_URL})
1818

1919
if [ ${GRAPHQL_PRE_CHECK} -ne 200 ]; then
20-
echo "$(date ${ts_format}) DEBUG [${probe_name}] - GraphQL endpoint ${GRID_GRAPHQL_URL} is not reachable. Status code: ${GRAPHQL_PRE_CHECK}."
20+
echo "$(date -u +"${ts_format}") DEBUG [${probe_name}] - GraphQL endpoint ${GRID_GRAPHQL_URL} is not reachable. Status code: ${GRAPHQL_PRE_CHECK}."
2121
exit 1
2222
fi
2323

@@ -32,10 +32,10 @@ if [ "${SE_LOG_LISTEN_GRAPHQL:-"false"}" = "true" ]; then
3232
fi
3333

3434
if [ ${SESSION_QUEUE_SIZE} -gt 0 ] && [ ${SESSION_COUNT} -eq 0 ]; then
35-
echo "$(date ${ts_format}) DEBUG [${probe_name}] - Session Queue Size: ${SESSION_QUEUE_SIZE}, Session Count: ${SESSION_COUNT}, Max Session: ${MAX_SESSION}"
36-
echo "$(date ${ts_format}) DEBUG [${probe_name}] - It seems the Distributor is delayed in processing a new session in the queue. Probe checks failed."
35+
echo "$(date -u +"${ts_format}") DEBUG [${probe_name}] - Session Queue Size: ${SESSION_QUEUE_SIZE}, Session Count: ${SESSION_COUNT}, Max Session: ${MAX_SESSION}"
36+
echo "$(date -u +"${ts_format}") DEBUG [${probe_name}] - It seems the Distributor is delayed in processing a new session in the queue. Probe checks failed."
3737
exit 1
3838
else
39-
echo "$(date ${ts_format}) DEBUG [${probe_name}] - Distributor is healthy."
39+
echo "$(date -u +"${ts_format}") DEBUG [${probe_name}] - Distributor is healthy."
4040
exit 0
4141
fi

0 commit comments

Comments
 (0)