Skip to content

Commit f3aeb95

Browse files
committed
some additional logging
1 parent 6f28a73 commit f3aeb95

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

manage.sh

+12
Original file line numberDiff line numberDiff line change
@@ -245,21 +245,33 @@ check_event_replay(){
245245
${VERBOSE} && log "Checking status of API event-replay"
246246
##
247247
## Check if import has started and save return code
248+
if [[ "${ACTION}" == "export" || "${ACTION}" == "import" ]]; then
249+
log "${ACTION} Checking for an active event-replay import"
250+
fi
248251
eval "docker logs stacks-blockchain-api 2>&1 | head -n20 | grep -q 'Importing raw event requests'" || test ${?} -eq 141
249252
check_import_started="${?}"
250253
${VERBOSE} && log "check_import_started: ${check_import_started}"
251254
##
252255
## Check if import has completed and save return code
256+
if [[ "${ACTION}" == "export" || "${ACTION}" == "import" ]]; then
257+
log "${ACTION} Checking for a completed event-replay import"
258+
fi
253259
eval "docker logs stacks-blockchain-api 2>&1 | tail -n20 | grep -q 'Event import and playback successful'" || test ${?} -eq 141
254260
check_import_finished="${?}"
255261
${VERBOSE} && log "check_import_finished: ${check_import_finished}"
256262
##
257263
## Check if export has started and save return code
264+
if [[ "${ACTION}" == "export" || "${ACTION}" == "import" ]]; then
265+
log "${ACTION} Checking for an active event-replay export"
266+
fi
258267
eval "docker logs stacks-blockchain-api 2>&1 | head -n20 | grep -q 'Export started'" || test ${?} -eq 141
259268
check_export_started="${?}"
260269
${VERBOSE} && log "check_export_started: ${check_export_started}"
261270
##
262271
## Check if export has completed and save return code
272+
if [[ "${ACTION}" == "export" || "${ACTION}" == "import" ]]; then
273+
log "${ACTION} Checking for a completed event-replay export"
274+
fi
263275
eval "docker logs stacks-blockchain-api 2>&1 | tail -n20 | grep -q 'Export successful'" || test ${?} -eq 141
264276
check_export_finished="${?}"
265277
${VERBOSE} && log "check_export_finished: ${check_export_finished}"

0 commit comments

Comments
 (0)