Skip to content

Commit cf587c9

Browse files
authored
feat(devnet): support toggling debug (#831)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 03d2b4f commit cf587c9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

devnet.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export CARDANO_CONFIG=./config/cardano/devnet/config.json
55
export CARDANO_DATABASE_PATH=.devnet
66
export CARDANO_DEV_MODE=true
77

8+
DEBUG=${DEBUG:-false}
9+
810
conf=$(dirname $CARDANO_CONFIG)
911
now=$(date -u +%s)
1012
echo setting start time in $conf to $now
@@ -14,4 +16,8 @@ sed -i -e "s/systemStart\": .*,/systemStart\": \"$(date -u +%Y-%m-%dT%H:%M:%SZ -
1416
echo resetting .devnet
1517
rm -rf .devnet/*
1618

17-
go run ./cmd/dingo/ --debug
19+
if [[ ${DEBUG} == true ]]; then
20+
go run ./cmd/dingo/ --debug
21+
else
22+
go run ./cmd/dingo/
23+
fi

0 commit comments

Comments
 (0)