File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,21 @@ ENCLAVE_NAME=${1:-local-testnet}
66LOGS_PATH=$SCRIPT_DIR /logs
77LOGS_SUBDIR=$LOGS_PATH /$ENCLAVE_NAME
88
9+ # Extract the service names of Lighthouse beacon nodes that start with "cl-".
10+ services=$( kurtosis enclave inspect " $ENCLAVE_NAME " | awk ' /^=+ User Services =+$/ { in_section=1; next }
11+ /^=+/ { in_section=0 }
12+ in_section && /^[0-9a-f]{12}/ { print $2 }' | grep ' ^cl-' )
13+
14+ # Store logs (including dependency logs) to Kurtosis Files Artifacts. These are downloaded locally by `kurtosis enclave dump`.
15+ for service in $services ; do
16+ kurtosis files storeservice --name " $service -logs" " $ENCLAVE_NAME " " $service " /data/lighthouse/beacon-data/beacon/logs/
17+ done
18+
919# Delete existing logs directory and make sure parent directory exists.
1020rm -rf $LOGS_SUBDIR && mkdir -p $LOGS_PATH
1121kurtosis enclave dump $ENCLAVE_NAME $LOGS_SUBDIR
1222echo " Local testnet logs stored to $LOGS_SUBDIR ."
23+ echo " The lighthouse beacon nodes' logs (including dependency logs) can be found in $LOGS_SUBDIR /files/cl-*-lighthouse-geth-logs."
1324
1425kurtosis enclave rm -f $ENCLAVE_NAME
1526kurtosis engine stop
You can’t perform that action at this time.
0 commit comments